[OS X] Implement 'activate-with-open-windows' event for app.

This commit is contained in:
Haojian Wu 2015-09-14 19:28:13 +08:00
parent 4d28fbf561
commit 3ad5d17612
7 changed files with 22 additions and 0 deletions

View file

@ -53,6 +53,7 @@
hasVisibleWindows:(BOOL)flag {
atom::Browser* browser = atom::Browser::Get();
if (flag) {
browser->ActivateWithOpenWindows();
return YES;
} else {
browser->ActivateWithNoOpenWindows();