1
0

qml: guard against wallet.network is None, QEWallet timer can trigger this func

while wallet is closing (when app is closing)
This commit is contained in:
Sander van Grieken
2025-07-25 09:13:26 +02:00
parent 5e00c55a06
commit 146a5438ff

View File

@@ -301,7 +301,7 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
_("New transaction: {}").format(config.format_amount_and_units(tx_wallet_delta.delta)))
def update_sync_progress(self):
if self.wallet.network.is_connected():
if self.wallet.network and self.wallet.network.is_connected():
num_sent, num_answered = self.wallet.adb.get_history_sync_state_details()
self.synchronizingProgress = \
("{} ({}/{})".format(_("Synchronizing..."), num_answered, num_sent))