1
0

daemon: reset CURRENT_WALLET if the wallet gets deleted

Set SimpleConfig.CURRENT_WALLET = None if the wallet gets deleted,
otherwise we try to open it on the next startup which will show an error
message in QML.
This commit is contained in:
f321x
2025-12-17 17:17:56 +01:00
parent 6bb8afebe5
commit 91b3a4a5dc

View File

@@ -562,6 +562,8 @@ class Daemon(Logger):
if os.path.exists(path):
os.unlink(path)
self.update_recently_opened_wallets(path, remove=True)
if self.config.CURRENT_WALLET == path:
self.config.CURRENT_WALLET = None
return True
return False