Show testnet icon for tray-menu option Show/Hide / set tooltip for tray icon to match non-testnet text (just [testnet] added) / remove obsolete title_testnet variable'
This commit is contained in:
parent
2e767410b8
commit
2abbe5fc88
@ -324,8 +324,7 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
|||||||
{
|
{
|
||||||
if(clientModel->isTestNet())
|
if(clientModel->isTestNet())
|
||||||
{
|
{
|
||||||
QString title_testnet = windowTitle() + QString(" ") + tr("[testnet]");
|
setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]"));
|
||||||
setWindowTitle(title_testnet);
|
|
||||||
#ifndef Q_WS_MAC
|
#ifndef Q_WS_MAC
|
||||||
setWindowIcon(QIcon(":icons/bitcoin_testnet"));
|
setWindowIcon(QIcon(":icons/bitcoin_testnet"));
|
||||||
#else
|
#else
|
||||||
@ -333,8 +332,9 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
|||||||
#endif
|
#endif
|
||||||
if(trayIcon)
|
if(trayIcon)
|
||||||
{
|
{
|
||||||
trayIcon->setToolTip(title_testnet);
|
trayIcon->setToolTip(tr("Bitcoin client") + QString(" ") + tr("[testnet]"));
|
||||||
trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
|
trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
|
||||||
|
toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user