mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
abort if file exists
This commit is contained in:
parent
353578986a
commit
4068c4bbf2
1 changed files with 3 additions and 1 deletions
|
@ -337,7 +337,9 @@ class ElectrumWindow(QMainWindow):
|
|||
filename = os.path.join(wallet_folder, filename)
|
||||
|
||||
storage = WalletStorage({'wallet_path': filename})
|
||||
assert not storage.file_exists
|
||||
if storage.file_exists:
|
||||
QMessageBox.critical(None, "Error", _("File exists"))
|
||||
return
|
||||
|
||||
wizard = installwizard.InstallWizard(self.config, self.network, storage)
|
||||
wallet = wizard.run()
|
||||
|
|
Loading…
Add table
Reference in a new issue