fix: prevent infinite recursion in show/hide methods

This commit is contained in:
2024-12-23 15:59:10 +01:00
committed by wakonig_k
co-authored by wakonig_k
parent bde5618699
commit 1b03ded906
@@ -430,12 +430,18 @@ class BECDockArea(BECWidget, QWidget):
"""Show all windows including floating docks."""
super().show()
for docks in self.panels.values():
if docks.window() is self:
# avoid recursion
continue
docks.window().show()
def hide(self):
"""Hide all windows including floating docks."""
super().hide()
for docks in self.panels.values():
if docks.window() is self:
# avoid recursion
continue
docks.window().hide()