Unminimize and raise an existing window

if its wallet is requested.
This commit is contained in:
Neil Booth 2015-09-01 19:14:25 +09:00
parent 119aa5bf2e
commit 2b7a555f0f
1 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,9 @@ class ElectrumGui:
path = config.get_wallet_path()
for w in self.windows:
if w.config.get_wallet_path() == path:
# Un-minimize the window and raise it
w.setWindowState(w.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
w.activateWindow()
break
else:
w = ElectrumWindow(config, self.network, self)