Skip to content

Commit

Permalink
Set Mac version to shutdown once window is shut
Browse files Browse the repository at this point in the history
  • Loading branch information
davidglassborow authored and SteveSandersonMS committed Jan 6, 2020
1 parent 485209e commit 5a0f015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WebWindow.Native/WebWindow.Mac.AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification {
[NSApp activateIgnoringOtherApps:YES];
}

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender {
return true;
}

- (void)dealloc {
[window release];
[super dealloc];
Expand Down

0 comments on commit 5a0f015

Please sign in to comment.