Fix event loop tracking crash.

This commit is contained in:
John Preston 2020-06-30 17:41:55 +04:00
parent 10ced19841
commit b7707a8a89
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ private:
}
- (void) darkModeChanged:(NSNotification *)aNotification {
Core::App().domain().notifyUnreadBadgeChanged();
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
Core::App().domain().notifyUnreadBadgeChanged();
});
}
- (void) screenIsLocked:(NSNotification *)aNotification {