More fixes after code review.
This commit is contained in:
parent
40d93ce55a
commit
9652ed6508
7 changed files with 11 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue