-
Notifications
You must be signed in to change notification settings - Fork 329
Fix window title of wallet loading window #409
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
Conversation
|
This will also break the settings in the registry, IIRC |
|
Considering the following Line 516 in d3203a9
user could end with two installed versions of Bitcoin Core, no? |
|
Approach NACK. Why not modify Or use |
jarolrod
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite an invasive change, why not just do:
diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp
index 3cceb5ca5..875dd0c14 100644
--- a/src/qt/walletcontroller.cpp
+++ b/src/qt/walletcontroller.cpp
@@ -206,6 +206,7 @@ void WalletControllerActivity::showProgressDialog(const QString& label_text)
m_progress_dialog->setLabelText(label_text);
m_progress_dialog->setRange(0, 0);
m_progress_dialog->setCancelButton(nullptr);
+ m_progress_dialog->setWindowTitle(PACKAGE_NAME);
m_progress_dialog->setWindowModality(Qt::ApplicationModal);
GUIUtil::PolishProgressDialog(m_progress_dialog);
// The setValue call forces QProgressDialog to start the internal duration estimation.bb7aae1 to
abcc83a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK abcc83a (see #409 (comment)), tested on Linux Mint 20.2 (Qt 5.12.8):
| master | this PR |
|---|---|
![]() |
![]() |
@ShaMan239
Before merging, could you update the PR title and description to describe use cases more precise:
gui/src/qt/walletcontroller.cpp
Line 254 in 774a4f5
| showProgressDialog(tr("Creating Wallet <b>%1</b>…").arg(m_create_wallet_dialog->walletName().toHtmlEscaped())); |
gui/src/qt/walletcontroller.cpp
Line 349 in 774a4f5
| showProgressDialog(tr("Opening Wallet <b>%1</b>…").arg(name.toHtmlEscaped())); |
jarolrod
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK abcc83a
tested on macOS 12 and Ubuntu 20.04, thanks for picking up the suggestion!
It should be noted that the behavior on master for macOS was a slightly different problem. For macOS on master, there was no window title at all. Now there is one. This is shown in the screenshots below.
| Master | PR |
|---|---|
![]() |
![]() |
|
Hmm, is this approach consistent with our code base? Consider |
Why isn't it? Line 41 in b8d45a3
Here is is essentially the same, just appends more information to Lines 1375 to 1387 in b8d45a3
|
Consider other short-living auxiliary windows: |
promag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
abcc83a to
58dca47
Compare
|
Updated from abcc83a to 58dca47 (pr409.02 -> pr409.03) Changes made:
|
58dca47 to
d9e421c
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d9e421c
In commit message maybe
s/"qt: Fix window title of wallet loading window"/"qt: Fix WalletControllerActivity progress dialog title"/
?
src/qt/walletcontroller.cpp
Outdated
| void CreateWalletActivity::createWallet() | ||
| { | ||
| showProgressDialog(tr("Creating Wallet <b>%1</b>…").arg(m_create_wallet_dialog->walletName().toHtmlEscaped())); | ||
| showProgressDialog(tr("Create Wallet"), tr("Creating Wallet <b>%1</b>…").arg(m_create_wallet_dialog->walletName().toHtmlEscaped())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
... which uses the same text as the menu item.
Maybe mention this in the translator comment?
d9e421c to
8e11d89
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8e11d89
8e11d89 to
e4bf580
Compare
e4bf580 to
a086a37
Compare
|
Updated from e4bf580 to a086a37 (pr409.06 -> pr409.07) Changes:
|
a086a37 to
ccecfa8
Compare
|
Updated from a086a37 to ccecfa8 (pr409.07 -> pr409.08) Addressed @hebasto and @jarolrod comments Changes:
|
|
I agree with hebasto. The strings shouldn't be broken up. Some languages might need to reorder the sentence. |
ccecfa8 to
9de84f6
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9de84f6
9de84f6 to
f86fe19
Compare
luke-jr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK f86fe19
|
Almost there, just need to update one of the translator comments: #409 (comment) Tested on macOS 12, here are all the new window titles in action:
|
The WalletControllerActivity progress dialog had title of "Bitcoin-Qt". The window title for opening wallet window should be "Open Wallet", for creating wallet window should be "Create Wallet", and for the window that is displayed when wallets are being loaded at startup should be "Load Wallets". This PR fixes that.
f86fe19 to
01bff8f
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 01bff8f, tested on Linux Mint 20.2 (Qt 5.12.8).
01bff8f qt: Fix WalletControllerActivity progress dialog title (Shashwat) Pull request description: Throughout the GUI, the title of the window, tells about the purpose of the window. This was not true for the title of wallet loading wallet. This PR fixes this issue by renaming the wallet loading window title to 'Open Wallet' Changes introduced in this PR (Runned Bitcoin-GUI on signet network) |Master|PR| |---|---| ||| ACKs for top commit: jarolrod: ACK 01bff8f hebasto: ACK 01bff8f, tested on Linux Mint 20.2 (Qt 5.12.8). Tree-SHA512: cd21c40752eb1c0afb5ec61b8a40e900bc3aa05749963f7957ece6024e4957f5bb37e0eb4f95aac488f5e08aea51fe13b023b05d8302a08c88dcc6790410ba64







Throughout the GUI, the title of the window, tells about the purpose of the window. This was not true for the title of wallet loading wallet.
This PR fixes this issue by renaming the wallet loading window title to 'Open Wallet'
Changes introduced in this PR (Runned Bitcoin-GUI on signet network)