forked from M-Labs/artiq
1
0
Fork 0

gui/experiments: float/bring into focus already open docks when opening experiments

This commit is contained in:
Sebastien Bourdeauducq 2016-01-27 21:58:27 +01:00
parent ebb959cd50
commit 022a1ffd09
1 changed files with 3 additions and 1 deletions

View File

@ -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)