Merge pull request #401 from crowning-/v0.12.0.x
User configurable Wallet Window Title
This commit is contained in:
commit
8d7cce0f23
@ -356,6 +356,8 @@ std::string HelpMessage(HelpMessageMode mode)
|
||||
strUsage += " -upgradewallet " + _("Upgrade wallet to latest format") + " " + _("on startup") + "\n";
|
||||
strUsage += " -wallet=<file> " + _("Specify wallet file (within data directory)") + " " + strprintf(_("(default: %s)"), "wallet.dat") + "\n";
|
||||
strUsage += " -walletnotify=<cmd> " + _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)") + "\n";
|
||||
if (mode == HMM_BITCOIN_QT)
|
||||
strUsage += " -windowtitle=<name> " + _("Wallet window title") + "\n";
|
||||
strUsage += " -zapwallettxes=<mode> " + _("Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup") + "\n";
|
||||
strUsage += " " + _("(1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta data)") + "\n";
|
||||
#endif
|
||||
|
@ -117,6 +117,8 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle *networkStyle, QWidget *parent) :
|
||||
} else {
|
||||
windowTitle += tr("Node");
|
||||
}
|
||||
QString userWindowTitle = QString::fromStdString(GetArg("-windowtitle", ""));
|
||||
if(!userWindowTitle.isEmpty()) windowTitle += " - " + userWindowTitle;
|
||||
windowTitle += " " + networkStyle->getTitleAddText();
|
||||
#ifndef Q_OS_MAC
|
||||
QApplication::setWindowIcon(networkStyle->getAppIcon());
|
||||
|
Loading…
Reference in New Issue
Block a user