Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Node window title with the chain type #758

Merged

Conversation

pablomartin4btc
Copy link
Contributor

@pablomartin4btc pablomartin4btc commented Sep 17, 2023

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.

image

There was also some interest on this while discussing network switching.

@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 17, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

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.

@pablomartin4btc pablomartin4btc force-pushed the gui-update-node-window-title branch 3 times, most recently from 9091492 to d062d32 Compare September 17, 2023 22:57
Update Node window with the chain type except for mainnet.
This replicates the behaviour of the main window.
Copy link
Contributor

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 9d37886

Copy link
Contributor

@hernanmarino hernanmarino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 9d37886

Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a platform specific issue?

This currently how my GUI behaves on master branch. [Platform: Ubuntu: 22]

[testnet]
Screenshot from 2023-11-17 14-03-34

[regtest]
Screenshot from 2023-11-17 14-02-46

[signet]
Screenshot from 2023-11-17 14-01-40

@pablomartin4btc
Copy link
Contributor Author

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.

Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested ACK 9d37886

Screenshot from 2023-11-20 17-21-30

Copy link
Contributor

@alfonsoromanz alfonsoromanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK 9d37886

Screenshot 2023-12-22 at 18 59 27

Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9d37886

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9d37886, tested on Ubuntu 23.10.

const QString chainType = QString::fromStdString(Params().GetChainTypeString());
const QString title = tr("Node window - [%1]").arg(chainType);
this->setWindowTitle(title);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Missed EOL.

@hebasto hebasto merged commit e3c1711 into bitcoin-core:master Feb 12, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indicate network in the Node window title - similar to the main window
9 participants