UICommon/AutoUpdate: Add macOS support

This commit is contained in:
spycrab committed 2019-02-06 20:50:09 +01:00
1 parent 6a6fc56865
commit 63cdebba88
3 files changed
+84 -12

No files matched your search

+4
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()