UICommon/AutoUpdate: Add macOS support

This commit is contained in:
spycrab
2019-01-20 02:24:26 +01:00
parent 6a6fc56865
commit 63cdebba88
3 changed files with 84 additions and 12 deletions

View File

@ -15,11 +15,15 @@
void run_on_main(std::function<void()> fnc)
{
if (![NSThread isMainThread])
{
dispatch_sync(dispatch_get_main_queue(), ^{
fnc();
});
}
else
{
fnc();
}
}
NSWindow* GetWindow()