♻️ refactor(dock/components): update visibility management for batteries and music player components
This commit is contained in:
5 files changed
+26
-28
No files matched your search
@@ -240,5 +240,9 @@ class Battery(Box):
|
||||
self.icon.remove_style_class("alert")
|
||||
self.circle.remove_style_class("alert")
|
||||
|
||||
self.set_visible(True)
|
||||
# Only show if enabled in configuration
|
||||
if data.DOCK_COMPONENTS_VISIBILITY.get("battery", True):
|
||||
self.set_visible(True)
|
||||
else:
|
||||
self.set_visible(False)
|
||||
return True
|
||||
Reference in new issue
Block a user