Unminimize and raise an existing window
if its wallet is requested.
This commit is contained in:
parent
119aa5bf2e
commit
2b7a555f0f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue