feat: add did-resign-active
event on app (#37933)
feat: add did-resign-active event on app
This commit is contained in:
parent
f4b172b9ec
commit
32afdda9ee
7 changed files with 34 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue