mirror of https://github.com/m-labs/artiq.git
gui/log: fix dock close tracking
This commit is contained in:
parent
3b81dd5adc
commit
804592a3f7
|
@ -322,9 +322,10 @@ class LogDockManager:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
for name, dock_state in state.items():
|
for name, dock_state in state.items():
|
||||||
dock = _LogDock(self, name, self.log_sub)
|
dock = _LogDock(self, name, self.log_sub)
|
||||||
|
self.docks[name] = dock
|
||||||
dock.restore_state(dock_state)
|
dock.restore_state(dock_state)
|
||||||
self.main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock)
|
self.main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock)
|
||||||
self.docks[name] = dock
|
dock.sigClosed.connect(partial(self.on_dock_closed, name))
|
||||||
self.update_closable()
|
self.update_closable()
|
||||||
|
|
||||||
def first_log_dock(self):
|
def first_log_dock(self):
|
||||||
|
|
Loading…
Reference in New Issue