1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

cups: only subscribe to cups, if widget is present

This commit is contained in:
bbedward
2025-11-05 18:10:54 -05:00
parent 20d797320a
commit e883ebe307
2 changed files with 79 additions and 1 deletions

View File

@@ -41,6 +41,18 @@ QtObject {
onItemChanged: {
root.cupsBuiltinInstance = item
if (item && !DMSService.activeSubscriptions.includes("cups") && !DMSService.activeSubscriptions.includes("all")) {
DMSService.addSubscription("cups")
}
}
onActiveChanged: {
if (!active) {
if (DMSService.activeSubscriptions.includes("cups")) {
DMSService.removeSubscription("cups")
}
root.cupsBuiltinInstance = null
}
}
Connections {