Unminimize and raise an existing window
if its wallet is requested.
This commit is contained in:
@@ -113,6 +113,9 @@ class ElectrumGui:
|
|||||||
path = config.get_wallet_path()
|
path = config.get_wallet_path()
|
||||||
for w in self.windows:
|
for w in self.windows:
|
||||||
if w.config.get_wallet_path() == path:
|
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
|
break
|
||||||
else:
|
else:
|
||||||
w = ElectrumWindow(config, self.network, self)
|
w = ElectrumWindow(config, self.network, self)
|
||||||
|
|||||||
Reference in New Issue
Block a user