UICommon/AutoUpdate: Add macOS support
This commit is contained in:
1 parent
6a6fc56865
commit
63cdebba88
3 files changed
+84
-12
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user