1
0

qt: only allow wallet unlock if wallet has ks-enc

fixes https://github.com/spesmilo/electrum/issues/10021
This commit is contained in:
SomberNight
2025-07-14 14:26:14 +00:00
parent 78a7c85f49
commit 9b5b2bad4a

View File

@@ -350,7 +350,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
self.unlock_wallet(message=msg)
def update_lock_menu(self):
self.lock_menu.setEnabled(self.wallet.has_password())
self.lock_menu.setEnabled(self._protected_requires_password())
text = _('Lock') if self.wallet.get_unlocked_password() else _('Unlock')
self.lock_menu.setText(text)