Merge pull request #1170 from kyuupichan/tray_tip_wallet
Tray tip wallet
This commit is contained in:
@@ -211,8 +211,9 @@ class ElectrumWindow(QMainWindow):
|
|||||||
self.dummy_address = a[0] if a else None
|
self.dummy_address = a[0] if a else None
|
||||||
self.accounts_expanded = self.wallet.storage.get('accounts_expanded',{})
|
self.accounts_expanded = self.wallet.storage.get('accounts_expanded',{})
|
||||||
self.current_account = self.wallet.storage.get("current_account", None)
|
self.current_account = self.wallet.storage.get("current_account", None)
|
||||||
title = 'Electrum ' + self.wallet.electrum_version + ' - ' + os.path.basename(self.wallet.storage.path)
|
title = 'Electrum %s - %s' % (self.wallet.electrum_version, self.wallet.basename())
|
||||||
if self.wallet.is_watching_only(): title += ' [%s]' % (_('watching only'))
|
if self.wallet.is_watching_only():
|
||||||
|
title += ' [%s]' % (_('watching only'))
|
||||||
self.setWindowTitle( title )
|
self.setWindowTitle( title )
|
||||||
self.update_history_tab()
|
self.update_history_tab()
|
||||||
self.update_wallet()
|
self.update_wallet()
|
||||||
@@ -536,7 +537,7 @@ class ElectrumWindow(QMainWindow):
|
|||||||
text += "%s"%quote
|
text += "%s"%quote
|
||||||
|
|
||||||
if self.tray:
|
if self.tray:
|
||||||
self.tray.setToolTip(text)
|
self.tray.setToolTip("%s (%s)" % (text, self.wallet.basename()))
|
||||||
icon = QIcon(":icons/status_connected.png")
|
icon = QIcon(":icons/status_connected.png")
|
||||||
else:
|
else:
|
||||||
text = _("Not connected")
|
text = _("Not connected")
|
||||||
|
|||||||
@@ -231,6 +231,9 @@ class Abstract_Wallet(object):
|
|||||||
def get_action(self):
|
def get_action(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def basename(self):
|
||||||
|
return os.path.basename(self.storage.path)
|
||||||
|
|
||||||
def convert_imported_keys(self, password):
|
def convert_imported_keys(self, password):
|
||||||
for k, v in self.imported_keys.items():
|
for k, v in self.imported_keys.items():
|
||||||
sec = pw_decode(v, password)
|
sec = pw_decode(v, password)
|
||||||
|
|||||||
Reference in New Issue
Block a user