electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f8c8666e59f4f2ddd05df078f21622d24c770c43
parent 2da6a8d171540a97824765b9e74fd3fff096deb6
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 11 Dec 2017 19:46:05 +0100

Merge pull request #3493 from bauerj/testnet-title

Add "Testnet" to main window title in testnet mode
Diffstat:
Mgui/qt/main_window.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -39,7 +39,7 @@ from PyQt5.QtWidgets import * from electrum.util import bh2u, bfh from electrum import keystore -from electrum.bitcoin import COIN, is_address, TYPE_ADDRESS +from electrum.bitcoin import COIN, is_address, TYPE_ADDRESS, NetworkConstants from electrum.plugins import run_hook from electrum.i18n import _ from electrum.util import (format_time, format_satoshis, PrintError, @@ -363,7 +363,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.setGeometry(100, 100, 840, 400) def watching_only_changed(self): - title = 'Electrum %s - %s' % (self.wallet.electrum_version, + name = "Electrum Testnet" if NetworkConstants.TESTNET else "Electrum" + title = '%s %s - %s' % (name, self.wallet.electrum_version, self.wallet.basename()) extra = [self.wallet.storage.get('wallet_type', '?')] if self.wallet.is_watching_only():