mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-20 00:04:16 +01:00
fix(dock_area): restore state safeguard to not pass none to pyqtgraph restoreState
This commit is contained in:
1 parent
205745cc72
commit
9079ddd727
1 file changed
+2
@@ -308,6 +308,8 @@ class BECDockArea(BECWidget, QWidget):
|
||||
"""
|
||||
if state is None:
|
||||
state = self.config.docks_state
|
||||
if state is None:
|
||||
return
|
||||
self.dock_area.restoreState(state, missing=missing, extra=extra)
|
||||
|
||||
@SafeSlot()
|
||||
|
||||
Reference in new issue
Block a user