bar modules own active state, fix circular effectiveVisible deadlock in BarGroup

This commit is contained in:
Damocles 2026-04-26 18:45:11 +02:00
parent 7eaa50327f
commit 7e594b7f8d
24 changed files with 52 additions and 73 deletions

View file

@ -7,8 +7,7 @@ import "../applets" as C
M.BarModule {
id: root
spacing: S.Theme.moduleSpacing
opacity: S.Modules.battery.enable && S.BatteryService.available ? 1 : 0
visible: opacity > 0
active: S.Modules.battery.enable && S.BatteryService.available
tooltip: "Battery: " + Math.round(S.BatteryService.percent) + "%" + (S.BatteryService.charging ? " (charging)" : "")
panelNamespace: "nova-battery"
panelTitle: "Battery"