mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
Quit while the window is hidden or minimized shows nothing: the only shutdown notice is pushed into the window that stays hidden #1126
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When the app is asked to quit while its main window is hidden or minimized, its only shutdown notice, the page "Saving... / Do not shut down the computer until this is done.", is pushed into that window, and the window stays hidden or minimized until the process exits. The shutdown itself is normal.
To reproduce:
hide()andshowMinimized(), the calls that the tray's Hide and Window → Minimize make.The window's state by Qt, sampled from the quit until the process was gone:
The other 3 hidden samples and the one other control sample were taken before the app had noticed a SIGTERM; the last sample of every hidden launch had the shutdown page. All 22 launches exited 0 with
Shutdown done. Four launches ateed1f426fcb6gave the same states.The shutdown handler clears the page stack and pushes the page. It does not show or raise the window:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/pages/MainWindow.qml (L310-L314)By the source nothing else announces a shutdown: there is no second window, the tray tooltip and menu do not change, and there is no Dock badge or notification. Bitcoin-Qt, by its source, hides every window and opens a separate shutdown window in the same step, whatever state the main window was in (bitcoin.cpp#L329-L341).
Suggested: show and raise the window in that handler, or use a separate small window as Bitcoin-Qt does. This is the same handler as in #1116.
This is a missing notice, not a failure. A user who quits from the tray or the Dock with the window out of sight gets no word from the app that the node is still saving.
Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, native window only. Limits: