1
0

kivy: minor fixes related to exchange rates

This commit is contained in:
ThomasV
2018-03-04 23:58:38 +01:00
parent c3ff6040d2
commit c9b0840c78
5 changed files with 10 additions and 3 deletions

View File

@@ -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:

View File

@@ -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())

View File

@@ -373,6 +373,8 @@ class ReceiveScreen(CScreen):
def save_request(self):
addr = self.screen.address
if not addr:
return
amount = self.screen.amount
message = self.screen.message
amount = self.app.get_amount(amount) if amount else 0

View File

@@ -63,7 +63,7 @@ HistoryScreen:
font_size: '30dp'
bold: True
size_hint: 1, 0.25
on_release: app.is_fiat = not app.is_fiat
on_release: app.is_fiat = not app.is_fiat if app.fx.is_enabled() else False
ScrollView:
id: content
do_scroll_x: False