Fix window title of wallet loading window#409
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.
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.
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
gui/src/qt/walletcontroller.cpp
Line 349 in 774a4f5
jarolrod
left a comment
There was a problem hiding this comment.
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 |
Consider other short-living auxiliary windows: |
abcc83a to
58dca47
Compare
|
Updated from abcc83a to 58dca47 (pr409.02 -> pr409.03) Changes made:
|
58dca47 to
d9e421c
Compare
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.
nit
... which uses the same text as the menu item.
Maybe mention this in the translator comment?
d9e421c to
8e11d89
Compare
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
9de84f6 to
f86fe19
Compare
|
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
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)