BarWidgetSettingsDialog: refactored to support direct opening.

This commit is contained in:
ItsLemmy
2025-10-21 20:44:30 -04:00
parent 9bf802ab86
commit fc5be392c0
5 changed files with 64 additions and 11 deletions
+3
View File
@@ -44,6 +44,7 @@ NPanel {
property int requestedTab: SettingsPanel.Tab.General
property int currentTabIndex: 0
property var requestedWidgetSettings: []
property var tabsModel: []
property var activeScrollView: null
@@ -220,6 +221,7 @@ NPanel {
root.tabsModel = newTabs // Assign the generated list to the model
}
// When the panel opens, choose the appropriate tab
onOpened: {
updateTabsModel()
@@ -233,6 +235,7 @@ NPanel {
}
}
}
// Now that the UI is settled, set the current tab index.
root.currentTabIndex = initialIndex
}