Browse Source

kivy: allow setting password for watch-only wallets

closes #6622

This has been only disabled for historical reasons: for a long time,
wallets in kivy were only keystore-encrypted, but watch-only wallets
do not have a keystore. Now they are storage-encrypted so passwords make sense.
patch-4
SomberNight 4 years ago
parent
commit
8eb4247ac4
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/gui/kivy/uix/dialogs/settings.py

3
electrum/gui/kivy/uix/dialogs/settings.py

@ -18,7 +18,6 @@ Builder.load_string('''
<SettingsDialog@Popup>
id: settings
title: _('Electrum Settings')
disable_password: False
has_pin_code: False
use_encryption: False
BoxLayout:
@ -85,7 +84,6 @@ Builder.load_string('''
action: partial(root.boolean_dialog, 'use_change', _('Use change addresses'), self.message)
CardSeparator
SettingsItem:
disabled: root.disable_password
title: _('Password')
description: _("Change wallet password.")
action: root.change_password
@ -126,7 +124,6 @@ class SettingsDialog(Factory.Popup):
def update(self):
self.wallet = self.app.wallet
self.disable_password = self.wallet.is_watching_only() if self.wallet else True
self.use_encryption = self.wallet.has_password() if self.wallet else False
self.has_pin_code = self.app.has_pin_code()

Loading…
Cancel
Save