gui: Fix window title update
This commit is contained in:
1 parent
fe60ee96e9
commit
1ed425ea17
1 file changed
+5
-3
@@ -1225,16 +1225,18 @@ void BitcoinGUI::updateProxyIcon()
|
|||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user