mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
BarWidgetSettingsDialog: refactored to support direct opening.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user