Browse Source

skip wallet files with leading dot

patch-4
Sander van Grieken 3 years ago
parent
commit
f5933da348
  1. 2
      electrum/gui/qml/qedaemon.py

2
electrum/gui/qml/qedaemon.py

@ -79,7 +79,7 @@ class QEAvailableWalletListModel(QEWalletListModel):
wallet_folder = os.path.dirname(self.daemon.config.get_wallet_path()) wallet_folder = os.path.dirname(self.daemon.config.get_wallet_path())
with os.scandir(wallet_folder) as it: with os.scandir(wallet_folder) as it:
for i in it: for i in it:
if i.is_file(): if i.is_file() and not i.name.startswith('.'):
available.append(i.path) available.append(i.path)
for path in sorted(available): for path in sorted(available):
wallet = self.daemon.get_wallet(path) wallet = self.daemon.get_wallet(path)

Loading…
Cancel
Save