fix(widgets): removed isVisible from all SafeProperties

This commit is contained in:
wyzula_j committed 2026-03-05 18:12:30 +01:00
1 parent f38cd3e3a0
commit b72bf4a0f9
9 files changed
+74 -30

No files matched your search

@@ -52,6 +52,7 @@ class BECQueue(BECWidget, CompactPopupWidget):
)
self.layout.setSpacing(0)
self.layout.setContentsMargins(0, 0, 0, 0)
self._toolbar_hidden = False
# Set up the toolbar
self.set_toolbar()
@@ -105,7 +106,7 @@ class BECQueue(BECWidget, CompactPopupWidget):
@Property(bool)
def hide_toolbar(self):
"""Property to hide the BEC Queue toolbar."""
return not self.toolbar.isVisible()
return self._toolbar_hidden
@hide_toolbar.setter
def hide_toolbar(self, hide: bool):
@@ -124,6 +125,7 @@ class BECQueue(BECWidget, CompactPopupWidget):
Args:
hide(bool): Whether to hide the toolbar.
"""
self._toolbar_hidden = hide
self.toolbar.setVisible(not hide)
def refresh_queue(self):