It fixes #544.
Enhance the Node window title by appending the chain type to it, except for the mainnet
, mirroring the behavior in the main window.
There was also some interest on this while discussing network switching.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | MarnixCroes, hernanmarino, BrandonOdiwuor, alfonsoromanz, kristapsk, hebasto |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Update Node window with the chain type except for mainnet.
This replicates the behaviour of the main window.
Is this a platform specific issue?
This currently how my GUI behaves on master
branch. [Platform: Ubuntu: 22]
[testnet]
[regtest]
[signet]
Thanks @BrandonOdiwuor for testing it.
Main window is fine, this PR updates the title on the node window (e.g.: Main Menu->Window->Console).
Is this a platform specific issue?
It should work on any platform.
tested ACK 9d37886a3b6ce24f4a4a05193eb0d071655a8457
1377+ if (chain == ChainType::MAIN) return;
1378+
1379+ const QString chainType = QString::fromStdString(Params().GetChainTypeString());
1380+ const QString title = tr("Node window - [%1]").arg(chainType);
1381+ this->setWindowTitle(title);
1382+}