mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-06-06 21:38:40 +02:00
fix(dock_area): restore state safeguard to not pass none to pyqtgraph restoreState
This commit is contained in:
@@ -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