Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,296 Lines • ▼ Show 20 Lines | if (proxy_enabled) { | ||||
labelProxyIcon->show(); | labelProxyIcon->show(); | ||||
} | } | ||||
} else { | } else { | ||||
labelProxyIcon->hide(); | labelProxyIcon->hide(); | ||||
} | } | ||||
} | } | ||||
void BitcoinGUI::updateWindowTitle() { | void BitcoinGUI::updateWindowTitle() { | ||||
QString window_title = tr(PACKAGE_NAME) + " - "; | QString window_title = tr(PACKAGE_NAME); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
if (walletFrame) { | if (walletFrame) { | ||||
WalletModel *const wallet_model = walletFrame->currentWalletModel(); | WalletModel *const wallet_model = walletFrame->currentWalletModel(); | ||||
if (wallet_model && !wallet_model->getWalletName().isEmpty()) { | if (wallet_model && !wallet_model->getWalletName().isEmpty()) { | ||||
window_title += wallet_model->getDisplayName() + " - "; | window_title += " - " + wallet_model->getDisplayName(); | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
window_title += m_network_style->getTitleAddText(); | if (!m_network_style->getTitleAddText().isEmpty()) { | ||||
window_title += " - " + m_network_style->getTitleAddText(); | |||||
} | |||||
setWindowTitle(window_title); | setWindowTitle(window_title); | ||||
} | } | ||||
void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { | void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { | ||||
if (!clientModel) { | if (!clientModel) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |