1
0

wizard: (qt) add dedicated button to create new wallet

This commit is contained in:
SomberNight
2019-12-10 01:44:21 +01:00
committed by ThomasV
parent 7324817ff3
commit c9ede07462
2 changed files with 21 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ class WalletStorage(Logger):
Logger.__init__(self)
self.lock = threading.RLock()
self.path = standardize_path(path)
self._file_exists = self.path and os.path.exists(self.path)
self._file_exists = bool(self.path and os.path.exists(self.path))
DB_Class = JsonDB
self.logger.info(f"wallet path {self.path}")
@@ -139,7 +139,7 @@ class WalletStorage(Logger):
self.logger.info(f"saved {self.path}")
self.db.set_modified(False)
def file_exists(self):
def file_exists(self) -> bool:
return self._file_exists
def is_past_initial_decryption(self):