tMerge pull request #366 from mkramlich/master - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit faa93e30106278d0c3f6f0d05944af7d94ac95f7 DIR parent 6a4e1c89f2f8f821215de06c8938b7588991d6c3 HTML Author: ThomasV <thomasv1@gmx.de> Date: Tue, 5 Nov 2013 11:27:45 -0800 Merge pull request #366 from mkramlich/master curses text UI now says Offline in --offline mode (matching the main Qt UI) Diffstat: M gui/text.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- DIR diff --git a/gui/text.py b/gui/text.py t@@ -122,15 +122,17 @@ class ElectrumGui: def print_balance(self): - if self.network and self.network.interface and self.network.interface.is_connected: + if not self.network: + msg = _("Offline") + elif self.network.interface and self.network.interface.is_connected: if not self.wallet.up_to_date: - msg = _( "Synchronizing..." ) + msg = _("Synchronizing...") else: c, u = self.wallet.get_balance() msg = _("Balance")+": %f "%(Decimal( c ) / 100000000) if u: msg += " [%f unconfirmed]"%(Decimal( u ) / 100000000) else: - msg = _( "Not connected" ) + msg = _("Not connected") self.stdscr.addstr( self.maxy -1, 3, msg)