-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[v2/Mac] Handle application terminate #3157
Conversation
WalkthroughThe recent update to the desktop application for Darwin systems involves enhancing the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- v2/internal/frontend/desktop/darwin/AppDelegate.m (2 hunks)
Additional comments: 2
v2/internal/frontend/desktop/darwin/AppDelegate.m (2)
12-12: The import statement for
"message.h"
has been added correctly and is necessary for the invocation ofprocessMessage
in the new methodapplicationShouldTerminate:
. Ensure that"message.h"
is located in the project's include paths.26-29: The implementation of
applicationShouldTerminate:
correctly intercepts the termination process. The call toprocessMessage("Q")
should be reviewed to ensure it properly handles the termination signal. ReturningNSTerminateCancel
is appropriate to cancel the default termination so the application can perform its own cleanup.
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- website/src/pages/changelog.mdx (1 hunks)
Additional comments: 1
website/src/pages/changelog.mdx (1)
- 23-23: The changelog entry for the dock icon right-click exit handling feature is correctly added under the "Unreleased" section, categorized as "Added", and includes the contributor's handle and PR link for traceability.
@leaanthony Should I close this PR? |
No, not at all! I've just not had chance to test it yet. |
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.
Worked perfectly in our app. Was also going to put up a PR for this 😄
Thanks for your time 🙏
Description
Intercept processing dock icon right-click exit.
Fixes #3095
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using
wails doctor
.Test Configuration
Please paste the output of
wails doctor
. If you are unable to run this command, please describe your environment in as much detail as possible.Checklist:
website/src/pages/changelog.mdx
with details of this PRSummary by CodeRabbit
New Features
Refactor