-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Qt: Fix restoration of minimized to tray window #14222
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
Minimizing the window with fMinimizeToTray=true actually do both showMinimized() and hide(). During restoration isMinimized() should be checked first. Otherwise, the restored window will be minimized.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Tested ACK f03c5c3 This successfully solves the "two step" show with the tray icon. Tested on all Ubuntu/macOS/Win. |
|
Is this for backport? |
|
Not sure this is worth back-porting... All UI-glitch-fixes have the risk to act differently in back ported versions. I would recommend to not back port it (if its not a clear bug that has been fixed). |
|
|
@Sjors Do you mind reviewing this PR? |
|
I can't find the "Minimize to the tray instead of the taskbar" option on macOS 10.14 with QT 5.11.2. |
|
bitcoin/src/qt/optionsdialog.cpp Lines 72 to 76 in f78558f
|
Fix UX bug on Windows. Steps to reproduce (tested on Windows 10):
The normal size window is expected.
Actually the main window is restored minimized to the taskbar.
Rationale: minimizing the window with
fMinimizeToTray==trueactually do bothshowMinimized()andhide(). During restorationisMinimized()should be checked first. Otherwise, the restored window will be minimized.The logic is broken both on Windows and Linux, but on my Linux (Mint 19 + Cinnamon 3.8.9) the window manager renders the main window as if all is correct. Nevertheless, other Linux systems may be affected by this bug.
Ref: