Reduced Errors and Warning in console (setting default visisble to false )

This commit is contained in:
tr1x_em committed 2025-08-07 11:21:36 +05:30
1 parent da03fcd84e
commit 8df2c3401c
6 files changed
+28 -6

No files matched your search

+3 -1
View File
@@ -541,8 +541,9 @@ class Dock(Window):
super().__init__(
layer="top",
title="modus",
title="modus-dock",
anchor=anchor,
visible=False, # Start hidden until content is ready
)
if data.DOCK_POSITION == "Left":
transition_type = "slide-right"
@@ -583,6 +584,7 @@ class Dock(Window):
if not data.DOCK_ENABLED:
self.set_visible(False)
else:
# Show dock now that content is ready
self.set_visible(True)
# Set up occlusion checking