diff --git a/Source/Core/MacUpdater/MacUI.mm b/Source/Core/MacUpdater/MacUI.mm index d36a6a111e..fd7d8492be 100644 --- a/Source/Core/MacUpdater/MacUI.mm +++ b/Source/Core/MacUpdater/MacUI.mm @@ -128,12 +128,12 @@ void UI::LaunchApplication(std::string path) encoding:[NSString defaultCStringEncoding]]]; } -// Stubs. These are only needed on Windows +void UI::Stop() +{ + run_on_main([] { [NSApp performSelector:@selector(terminate:) withObject:nil afterDelay:0.0]; }); +} +// Stub. Only needed on Windows void UI::Init() { } - -void UI::Stop() -{ -}