1
0

qml: show user feedback when wallet file has action pending

This commit is contained in:
Sander van Grieken
2023-09-01 14:16:30 +02:00
parent 5f27777301
commit 2a81ab6569

View File

@@ -3,6 +3,7 @@ from typing import TYPE_CHECKING
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
from electrum.i18n import _
from electrum.logging import get_logger
from electrum.storage import WalletStorage, StorageEncryptionVersion
from electrum.wallet_db import WalletDB
@@ -189,7 +190,7 @@ class QEWalletDB(QObject):
return
if self._db.get_action():
self._logger.warning('action pending. QML version doesn\'t support continuation of wizard')
return
raise WalletFileException(_('This wallet has an action pending. This is currently not supported on mobile'))
if self._db.requires_upgrade():
self._logger.warning('wallet requires upgrade, upgrading')