2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

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

View File

@ -488,7 +488,9 @@ class ExperimentManager:
def open_experiment(self, expurl):
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)
self.open_experiments[expurl] = dock
self.dock_area.floatDock(dock)