Browse Source

fix: wallet storage upgrade happening silently even when using QT GUI

3.0.x
SomberNight 7 years ago
parent
commit
115ef54c0c
  1. 2
      gui/qt/__init__.py
  2. 2
      lib/daemon.py

2
gui/qt/__init__.py

@ -192,7 +192,7 @@ class ElectrumGui:
d.exec_() d.exec_()
return return
if not wallet: if not wallet:
storage = WalletStorage(path) storage = WalletStorage(path, manual_upgrades=True)
wizard = InstallWizard(self.config, self.app, self.plugins, storage) wizard = InstallWizard(self.config, self.app, self.plugins, storage)
try: try:
wallet = wizard.run_and_get_wallet() wallet = wizard.run_and_get_wallet()

2
lib/daemon.py

@ -220,7 +220,7 @@ class Daemon(DaemonThread):
if storage.requires_split(): if storage.requires_split():
return return
if storage.requires_upgrade(): if storage.requires_upgrade():
storage.upgrade() return
if storage.get_action(): if storage.get_action():
return return
wallet = Wallet(storage) wallet = Wallet(storage)

Loading…
Cancel
Save