Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix quitting on macOS #248

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Conversation

jkaving
Copy link
Contributor

@jkaving jkaving commented Oct 15, 2020

The QuitHandler that proxies our Exit action needs to call the performQuit() method on the QuitResponse that it receives.
See the Javadoc for com.apple.eawt.QuitHandler.handleQuitRequestWith() which says:

  /**
   * Invoked when the application is asked to quit.
   *
   * Implementors must call either {@link QuitResponse#cancelQuit()}, {@link QuitResponse#performQuit()}, or ensure the application terminates.
   * The process (or log-out) requesting this app to quit will be blocked until the {@link QuitResponse} is handled.
   ...

Fixes #247

The QuitHandler that proxies our Exit action needs to call
the performQuit() method on the QuitResponse that it receives.
See the Javadoc for com.apple.eawt.QuitHandler.handleQuitRequestWith()
which says:

  /**
   * Invoked when the application is asked to quit.
   *
   * Implementors must call either {@link QuitResponse#cancelQuit()}, {@link QuitResponse#performQuit()}, or ensure the application terminates.
   * The process (or log-out) requesting this app to quit will be blocked until the {@link QuitResponse} is handled.
   ...

Fixes chewiebug#247
@chewiebug chewiebug merged commit 13bd07c into chewiebug:develop Oct 24, 2020
chewiebug added a commit that referenced this pull request Oct 24, 2020
@chewiebug
Copy link
Owner

Thank you very much for your contribution!

@chewiebug chewiebug added the bug label Oct 24, 2020
@chewiebug chewiebug added this to the 1.37 milestone Jan 10, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

macOS - Application hangs when quitting
2 participants