mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Custom enter from event loop in applicationDidBecomeActive.
This commit is contained in:
parent
6e682643df
commit
600cf83c3f
1 changed files with 8 additions and 6 deletions
|
@ -141,6 +141,7 @@ ApplicationDelegate *_sharedDelegate = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) applicationDidBecomeActive:(NSNotification *)aNotification {
|
- (void) applicationDidBecomeActive:(NSNotification *)aNotification {
|
||||||
|
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||||
if (Core::IsAppLaunched() && !_ignoreActivation) {
|
if (Core::IsAppLaunched() && !_ignoreActivation) {
|
||||||
Core::App().handleAppActivated();
|
Core::App().handleAppActivated();
|
||||||
if (auto window = App::wnd()) {
|
if (auto window = App::wnd()) {
|
||||||
|
@ -149,6 +150,7 @@ ApplicationDelegate *_sharedDelegate = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) applicationDidResignActive:(NSNotification *)aNotification {
|
- (void) applicationDidResignActive:(NSNotification *)aNotification {
|
||||||
|
|
Loading…
Add table
Reference in a new issue