mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
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.
This commit is contained in:
parent
15de954d6a
commit
8eb4247ac4
1 changed files with 0 additions and 3 deletions
|
@ -18,7 +18,6 @@ Builder.load_string('''
|
||||||
<SettingsDialog@Popup>
|
<SettingsDialog@Popup>
|
||||||
id: settings
|
id: settings
|
||||||
title: _('Electrum Settings')
|
title: _('Electrum Settings')
|
||||||
disable_password: False
|
|
||||||
has_pin_code: False
|
has_pin_code: False
|
||||||
use_encryption: False
|
use_encryption: False
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
|
@ -85,7 +84,6 @@ Builder.load_string('''
|
||||||
action: partial(root.boolean_dialog, 'use_change', _('Use change addresses'), self.message)
|
action: partial(root.boolean_dialog, 'use_change', _('Use change addresses'), self.message)
|
||||||
CardSeparator
|
CardSeparator
|
||||||
SettingsItem:
|
SettingsItem:
|
||||||
disabled: root.disable_password
|
|
||||||
title: _('Password')
|
title: _('Password')
|
||||||
description: _("Change wallet password.")
|
description: _("Change wallet password.")
|
||||||
action: root.change_password
|
action: root.change_password
|
||||||
|
@ -126,7 +124,6 @@ class SettingsDialog(Factory.Popup):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.wallet = self.app.wallet
|
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.use_encryption = self.wallet.has_password() if self.wallet else False
|
||||||
self.has_pin_code = self.app.has_pin_code()
|
self.has_pin_code = self.app.has_pin_code()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue