Skip to content

Commit

Permalink
Merge pull request #790 from ElderOrb/store_tab_index
Browse files Browse the repository at this point in the history
store tab index
  • Loading branch information
dericed authored Dec 8, 2023
2 parents 63aba5e + 01b1d93 commit ddea68f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/GUI/dvrescue/dvrescue/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ ApplicationWindow {

ButtonGroup {
id: navigationButtons
buttons: [captureButton, analysisButton, packageButton, mergeButton]
buttons: [captureButton, analysisButton, mergeButton, packageButton]
onClicked: {
settings.defaultTabIndex = button.index
}
}

NavButton {
Expand Down Expand Up @@ -125,6 +128,10 @@ ApplicationWindow {
icon.source: "/icons/menu-debug.svg"
visible: settings.debugVisible
}

Component.onCompleted: {
navigationButtons.buttons[settings.defaultTabIndex].checked = true
}
}

DvRescueReport {
Expand Down Expand Up @@ -352,6 +359,7 @@ ApplicationWindow {
property string ffmpegCmd
property alias recentFilesJSON: recentFilesModel.recentFilesJSON
property bool debugVisible
property int defaultTabIndex

Component.onCompleted: {
console.debug('settings initialized')
Expand Down

0 comments on commit ddea68f

Please sign in to comment.