Skip to content

Commit

Permalink
Revert "display unicode wallet path in Qt GUI"
Browse files Browse the repository at this point in the history
This reverts commit 6318bda.
  • Loading branch information
ecdsa committed Mar 11, 2017
1 parent 81b6ae7 commit 5c1cdf0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,9 @@ def init_geometry(self):
self.print_error("using default geometry")
self.setGeometry(100, 100, 840, 400)

def wallet_name(self):
return self.wallet.basename().decode('utf8')

def watching_only_changed(self):
title = 'Electrum %s - %s' % (self.wallet.electrum_version, self.wallet_name())
title = 'Electrum %s - %s' % (self.wallet.electrum_version,
self.wallet.basename())
extra = [self.wallet.storage.get('wallet_type', '?')]
if self.wallet.is_watching_only():
self.warn_if_watching_only()
Expand Down Expand Up @@ -387,7 +385,6 @@ def backup_wallet(self):
self.show_critical(_("Electrum was unable to copy your wallet file to the specified location.") + "\n" + str(reason), title=_("Unable to create backup"))

def update_recently_visited(self, filename):
filename = filename.decode('utf8')
recent = self.config.get('recently_open', [])
if filename in recent:
recent.remove(filename)
Expand Down Expand Up @@ -678,7 +675,7 @@ def update_status(self):
text = _("Not connected")
icon = QIcon(":icons/status_disconnected.png")

self.tray.setToolTip("%s (%s)" % (text, self.wallet_name()))
self.tray.setToolTip("%s (%s)" % (text, self.wallet.basename()))
self.balance_label.setText(text)
self.status_button.setIcon( icon )

Expand Down

0 comments on commit 5c1cdf0

Please sign in to comment.