Create local branches at branch switch

This commit is contained in:
woblight
2025-08-13 16:21:56 +02:00
parent 948d35d072
commit 66a23eb5d7
3 changed files with 61 additions and 22 deletions
+13 -2
View File
@@ -126,9 +126,20 @@ Page {
ComboBox {
id: branchSelector
model: addon.branches
onModelChanged: currentIndex = find(addon.currentBranch)
Component.onCompleted: currentIndex = find(addon.currentBranch)
onActivated: addon.currentBranch = currentText
implicitContentWidthPolicy: ComboBox.WidestText
Connections
{
target: addon
function onCurrentBranchChanged()
{
branchSelector.currentIndex = branchSelector.find(addon.currentBranch)
}
function onBranchesChanged()
{
branchSelector.currentIndex = branchSelector.find(addon.currentBranch)
}
}
}
RowLayout {
spacing: 0