From 3613e4ebf0014c9e4a4cb73b35afdd0e9a4424a2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 31 Oct 2015 15:25:22 +0100 Subject: [PATCH] kivy: fix formatting in get_max_amount --- gui/kivy/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py index ed3a54714..9d23ff723 100644 --- a/gui/kivy/main_window.py +++ b/gui/kivy/main_window.py @@ -441,9 +441,10 @@ class ElectrumWindow(App): def get_max_amount(self): + from electrum.util import format_satoshis_plain inputs = self.wallet.get_spendable_coins(None) amount, fee = self.wallet.get_max_amount(self.electrum_config, inputs, None) - return self.format_amount(amount) + return format_satoshis_plain(amount, self.decimal_point()) def update_amount(self, amount, c): if c == '<':