More fixes after code review.

This commit is contained in:
Haojian Wu 2015-09-14 19:05:53 -07:00
parent 40d93ce55a
commit 9652ed6508
7 changed files with 11 additions and 30 deletions

View file

@ -53,13 +53,7 @@
hasVisibleWindows:(BOOL)flag {
atom::Browser* browser = atom::Browser::Get();
browser->Activate(static_cast<bool>(flag));
if (flag) {
return YES;
} else {
// Deprecated API, for compatibility.
browser->ActivateWithNoOpenWindows();
return NO;
}
return flag;
}
@end