From: Michael Kramlich Date: Tue, 5 Nov 2013 19:24:21 +0000 (-0700) Subject: curses text UI now says Offline (rather than 'Not connected') when started in --offli... X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=09b0eeedfb36b9e913b0a196aa5bff110f0b259b;p=electrum-nvc.git curses text UI now says Offline (rather than 'Not connected') when started in --offline mode; this matches the main Qt UI --- diff --git a/gui/text.py b/gui/text.py index bc1f48c..437ce35 100644 --- a/gui/text.py +++ b/gui/text.py @@ -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)