kivy: fix settings layout
This commit is contained in:
parent
37e93928ab
commit
1c7f3c65e2
|
@ -322,7 +322,7 @@
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
title: ''
|
title: ''
|
||||||
description: ''
|
description: ''
|
||||||
size_hint: 1, None
|
size_hint: 1, 1
|
||||||
Label:
|
Label:
|
||||||
id: title
|
id: title
|
||||||
text: self.parent.title
|
text: self.parent.title
|
||||||
|
@ -333,7 +333,7 @@
|
||||||
Label:
|
Label:
|
||||||
text: self.parent.description
|
text: self.parent.description
|
||||||
size_hint: 1, 1
|
size_hint: 1, 1
|
||||||
text_size: self.size
|
text_size: self.width, None
|
||||||
color: 0.8, 0.8, 0.8, 1
|
color: 0.8, 0.8, 0.8, 1
|
||||||
halign: 'left'
|
halign: 'left'
|
||||||
|
|
||||||
|
|
|
@ -808,7 +808,7 @@ class ElectrumWindow(App):
|
||||||
self.protected(self._change_password, ())
|
self.protected(self._change_password, ())
|
||||||
|
|
||||||
def _change_password(self, old_password):
|
def _change_password(self, old_password):
|
||||||
if old_password:
|
if self.wallet.use_encryption:
|
||||||
try:
|
try:
|
||||||
self.wallet.check_password(old_password)
|
self.wallet.check_password(old_password)
|
||||||
except InvalidPassword:
|
except InvalidPassword:
|
||||||
|
|
|
@ -13,7 +13,7 @@ Popup:
|
||||||
CardSeparator
|
CardSeparator
|
||||||
SettingsItem:
|
SettingsItem:
|
||||||
title: _('Denomination') + ' (' + app.base_unit + ')'
|
title: _('Denomination') + ' (' + app.base_unit + ')'
|
||||||
description: "Base unit for Bitcoin amounts."
|
description: _("Base unit for Bitcoin amounts.")
|
||||||
on_release:
|
on_release:
|
||||||
app._rotate_bu()
|
app._rotate_bu()
|
||||||
self.title = _('Denomination') + ' (' + app.base_unit + ')'
|
self.title = _('Denomination') + ' (' + app.base_unit + ')'
|
||||||
|
|
Loading…
Reference in New Issue