mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
Put title() member func, with localization, in main_window.py
This commit is contained in:
parent
889174ae19
commit
f56413d602
2 changed files with 7 additions and 7 deletions
|
@ -200,6 +200,12 @@ class ElectrumWindow(QMainWindow):
|
||||||
self.wallet.stop_threads()
|
self.wallet.stop_threads()
|
||||||
run_hook('close_wallet')
|
run_hook('close_wallet')
|
||||||
|
|
||||||
|
def title(self):
|
||||||
|
s = 'Electrum %s - %s' % (self.wallet.electrum_version, self.wallet.basename())
|
||||||
|
if self.wallet.is_watching_only():
|
||||||
|
s += ' [%s]' % (_('watching only'))
|
||||||
|
return s
|
||||||
|
|
||||||
def load_wallet(self, wallet):
|
def load_wallet(self, wallet):
|
||||||
import electrum
|
import electrum
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
|
@ -211,7 +217,7 @@ 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)
|
||||||
self.setWindowTitle( self.wallet.title() )
|
self.setWindowTitle( self.title() )
|
||||||
self.update_history_tab()
|
self.update_history_tab()
|
||||||
self.update_wallet()
|
self.update_wallet()
|
||||||
# Once GUI has been initialized check if we want to announce something since the callback has been called before the GUI was initialized
|
# Once GUI has been initialized check if we want to announce something since the callback has been called before the GUI was initialized
|
||||||
|
|
|
@ -237,12 +237,6 @@ class Abstract_Wallet(object):
|
||||||
def basename(self):
|
def basename(self):
|
||||||
return self.storage.basename()
|
return self.storage.basename()
|
||||||
|
|
||||||
def title(self):
|
|
||||||
s = 'Electrum %s - %s' % (self.electrum_version, self.basename())
|
|
||||||
if self.is_watching_only():
|
|
||||||
s += ' [%s]' % (_('watching only'))
|
|
||||||
return s
|
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue