1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

control center: open relevant tab based on click area, configurable

icons
This commit is contained in:
bbedward
2025-08-20 13:45:46 -04:00
parent 8c7b72fb6c
commit ee8ab26d45
7 changed files with 386 additions and 10 deletions

View File

@@ -995,6 +995,7 @@ PanelWindow {
return controlCenterLoader.item
}
parentScreen: root.screen
widgetData: parent.widgetData
onClicked: {
controlCenterLoader.active = true
if (controlCenterLoader.item) {
@@ -1006,6 +1007,15 @@ PanelWindow {
}
}
}
onIconClicked: (tab) => {
controlCenterLoader.active = true
if (controlCenterLoader.item) {
controlCenterLoader.item.triggerScreen = root.screen
controlCenterLoader.item.openWithTab(tab)
if (NetworkService.wifiEnabled)
NetworkService.scanWifi()
}
}
}
}