Skip to content

Commit

Permalink
close app if window closed, macOS standalone (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeijisIrlnd authored Aug 17, 2024
1 parent d247d4d commit 713d3b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/detail/standalone/macos/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
freeaudio::clap_wrapper::standalone::mainStartAudio();
}

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

- (void)applicationWillTerminate:(NSNotification *)aNotification
{
LOG << "applicationWillTerminate shutdown" << std::endl;
Expand Down

0 comments on commit 713d3b3

Please sign in to comment.