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
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
0 additions and
3 deletions
electrum/gui/kivy/uix/dialogs/settings.py
@ -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 ( )