feat: add did-resign-active event on app (#37933)

feat: add did-resign-active event on app
This commit is contained in:
Shelley Vohr 2023-04-18 16:53:39 +02:00 committed by GitHub
parent f4b172b9ec
commit 32afdda9ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 34 additions and 4 deletions

View file

@ -92,6 +92,10 @@ static NSDictionary* UNNotificationResponseToNSDictionary(
electron::Browser::Get()->DidBecomeActive();
}
- (void)applicationDidResignActive:(NSNotification*)notification {
electron::Browser::Get()->DidResignActive();
}
- (NSMenu*)applicationDockMenu:(NSApplication*)sender {
if (menu_controller_)
return [menu_controller_ menu];