dashboard: Restore minimized experiments when trying to open them again

When the user tried to open an experiment from the explorer that
already existed, previously "nothing would happen" (focus change
without the window being restored).
pull/882/merge
David Nadlinger 2017-12-15 18:47:08 +00:00
parent 25022b28c3
commit c3c13da1a6
1 changed files with 2 additions and 0 deletions

View File

@ -551,6 +551,8 @@ class ExperimentManager:
def open_experiment(self, expurl):
if expurl in self.open_experiments:
dock = self.open_experiments[expurl]
if dock.isMinimized():
dock.showNormal()
self.main_window.centralWidget().setActiveSubWindow(dock)
return dock
try: