forked from M-Labs/artiq
gui/experiments: float/bring into focus already open docks when opening experiments
This commit is contained in:
parent
ebb959cd50
commit
022a1ffd09
|
@ -488,7 +488,9 @@ class ExperimentManager:
|
||||||
|
|
||||||
def open_experiment(self, expurl):
|
def open_experiment(self, expurl):
|
||||||
if expurl in self.open_experiments:
|
if expurl in self.open_experiments:
|
||||||
return self.open_experiments[expurl]
|
dock = self.open_experiments[expurl]
|
||||||
|
self.dock_area.floatDock(dock)
|
||||||
|
return dock
|
||||||
dock = _ExperimentDock(self, expurl)
|
dock = _ExperimentDock(self, expurl)
|
||||||
self.open_experiments[expurl] = dock
|
self.open_experiments[expurl] = dock
|
||||||
self.dock_area.floatDock(dock)
|
self.dock_area.floatDock(dock)
|
||||||
|
|
Loading…
Reference in New Issue