From 544f6d547d9ed415662cda5e240f04f84bd46075 Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 21 Mar 2019 13:47:23 +0100 Subject: [PATCH] MacUpdater: Fix updater not closing after update is completed --- Source/Core/MacUpdater/MacUI.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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() -{ -}