kivy: minor fixes related to exchange rates
This commit is contained in:
@@ -39,6 +39,7 @@ Builder.load_string('''
|
||||
size_hint: 1, None
|
||||
font_size: '20dp'
|
||||
height: '48dp'
|
||||
disabled: not app.fx.is_enabled()
|
||||
on_release:
|
||||
kb.is_fiat = True
|
||||
Widget:
|
||||
|
||||
@@ -106,4 +106,6 @@ class FxDialog(Factory.Popup):
|
||||
if ccy != self.fx.get_currency():
|
||||
self.fx.set_currency(ccy)
|
||||
self.app.fiat_unit = ccy
|
||||
else:
|
||||
self.app.is_fiat = False
|
||||
Clock.schedule_once(lambda dt: self.add_exchanges())
|
||||
|
||||
Reference in New Issue
Block a user