-
Notifications
You must be signed in to change notification settings - Fork 86
Proper close/hide behavior on mac #18739
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
base: master
Are you sure you want to change the base?
Conversation
Jenkins Builds
|
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.
Otherwise LGTM, nice work
*/ | ||
Connections { | ||
target: SystemUtils | ||
enabled: SQUtils.Utils.mac |
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.
I personally wouldn't do this distinction here (macOS vs. other); we know we want this behavior everywhere
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.
Tested and there's an scenario that I was not expecting unless I'm missing something..
Whenever the app is running after onboarding, clicking X minimizes the app instead of closing it. Instead, during the onboarding, it does quit correctly.
Screen.Recording.2025-09-04.at.14.27.52.mov
The rest of scenarios are working as expected.
What does the PR do
This PR introduces workaround to handle closing behavior on mac in a desired way.
minimize on close enabled:
minimize on close disabled:
Closes: #18667
Affected areas
SystemUtilsInternal
,main.qml
Architecture compliance
My PR is consistent with this document: QML Architecture Guidelines
How to test
Try scenarios listed above.
Risk
Low