♻️ refactor(dock/components): delay visibility checks and initialization in dock components to prevent showing during startup

This commit is contained in:
sankalp committed 2025-07-04 12:13:13 +05:45
1 parent 1e755e60dc
commit bc11606e11
3 files changed
+36 -12

No files matched your search

+5
View File
@@ -183,6 +183,11 @@ class DockComponents(Box):
# Battery component manages its own visibility based on config and battery presence
# Don't override its visibility here, let it handle it internally
pass
# Special handling for music player - let it manage its own visibility based on media content
elif component_name == "music_player":
# Music player component manages its own visibility based on config and media presence
# Don't override its visibility here, let it handle it internally
pass
else:
widget.set_visible(visibility)