-
Notifications
You must be signed in to change notification settings - Fork 333
raise helpMessageDialog #167
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
src/qt/bitcoingui.cpp
Outdated
| void BitcoinGUI::showHelpMessageClicked() | ||
| { | ||
| helpMessageDialog->show(); | ||
| helpMessageDialog->raise();//bring to top if obscured |
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.
Not sure if you are aware of GUIUtil::bringToFront(helpMessageDialog), seems the right call here (
and remove the above show()).
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.
Thanks!
|
Mind providing steps to reproduce |
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.
No strong opinion, but I do not think this is needed.
The help menu always shows on top, I cannot come up with a scenario where it is obfuscated. Furthermore, If the help window has been moved to the background by clicking on another window, clicking on Help -> Command-line Options will bring back the help window to the top.
|
i will post screen shots - maybe this is a macOS specific issue.. |
|
Maybe this is an "accessibility" issue and warrants an accessibility label - note that if the user is using tab-thru navigation. Once the window is presented and then obfuscated - using the nav bar again will not re-present the window. I think is is critical that we incorporate usability/accessibility considerations - I would hope that this gui centric fork allows for these very nuanced issues. Not everybody can use a mouse in gui applications. :) |
|
Concept ACK. I can confirm this bug on macOS Big Sur 11.1 (20C69) + Homebrew's Qt 5.15.2. @RandyMcMillan Do you mind using a more general approach suggested by @promag: --- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -845,7 +845,7 @@ void BitcoinGUI::showDebugWindowActivateConsole()
void BitcoinGUI::showHelpMessageClicked()
{
- helpMessageDialog->show();
+ GUIUtil::bringToFront(helpMessageDialog);
}
#ifdef ENABLE_WALLET |
|
Thanks for posting the snippet - saved a lot of time! |
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.
Code review ACK 7711446.
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 7711446, tested on:
- macOS Big Sur 11.1 (20C69) + Homebrew's Qt 5.15.2
- Linux Mint 20.1 + Cinnamon + Qt 5.12.8
|
Does this need backport? |
Yes, I think, as it is a bugfix for macOS builds. |
|
ok, thanks. Will backport. |
Github-Pull: bitcoin-core/gui#167 Rebased-From: 7711446
|
Backported in bitcoin/bitcoin#20901 |
7711446 raise helpMessageDialog (randymcmillan) Pull request description: the raise() method brings the helpMessageDialog to the top if it is obscured by another window. ACKs for top commit: promag: Code review ACK 7711446. hebasto: ACK 7711446, tested on: Tree-SHA512: 0d5b107aa9a5ce3891e88ef69f64461c8b23d17476b798691119e84bfc78e16b2491c798adb5d6cc347af3b7f18729593d7924090c336114a3cf34fbee344bfb
7711446 raise helpMessageDialog (randymcmillan) Pull request description: the raise() method brings the helpMessageDialog to the top if it is obscured by another window. ACKs for top commit: promag: Code review ACK 7711446. hebasto: ACK 7711446, tested on: Tree-SHA512: 0d5b107aa9a5ce3891e88ef69f64461c8b23d17476b798691119e84bfc78e16b2491c798adb5d6cc347af3b7f18729593d7924090c336114a3cf34fbee344bfb
7711446 raise helpMessageDialog (randymcmillan) Pull request description: the raise() method brings the helpMessageDialog to the top if it is obscured by another window. ACKs for top commit: promag: Code review ACK 7711446. hebasto: ACK 7711446, tested on: Tree-SHA512: 0d5b107aa9a5ce3891e88ef69f64461c8b23d17476b798691119e84bfc78e16b2491c798adb5d6cc347af3b7f18729593d7924090c336114a3cf34fbee344bfb
Github-Pull: bitcoin-core/gui#167 Rebased-From: 7711446 (cherry picked from commit e2ebc85)
Github-Pull: bitcoin-core/gui#167 Rebased-From: 7711446 (cherry picked from commit e2ebc85)
Github-Pull: bitcoin-core/gui#167 Rebased-From: 7711446 (cherry picked from commit e2ebc85)
7711446 raise helpMessageDialog (randymcmillan) Pull request description: the raise() method brings the helpMessageDialog to the top if it is obscured by another window. ACKs for top commit: promag: Code review ACK 7711446. hebasto: ACK 7711446, tested on: Tree-SHA512: 0d5b107aa9a5ce3891e88ef69f64461c8b23d17476b798691119e84bfc78e16b2491c798adb5d6cc347af3b7f18729593d7924090c336114a3cf34fbee344bfb


the raise() method brings the helpMessageDialog to the top if it is obscured by another window.