Add forward declaration of NSWindow.allowsAutomaticWindowTabbing
This commit is contained in:
parent
24b9313958
commit
770a3509cf
1 changed files with 5 additions and 2 deletions
|
@ -10,6 +10,10 @@
|
||||||
#include "base/strings/sys_string_conversions.h"
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "base/values.h"
|
#include "base/values.h"
|
||||||
|
|
||||||
|
@interface NSWindow (SierraSDK)
|
||||||
|
@property(class) BOOL allowsAutomaticWindowTabbing;
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation AtomApplicationDelegate
|
@implementation AtomApplicationDelegate
|
||||||
|
|
||||||
- (void)setApplicationDockMenu:(atom::AtomMenuModel*)model {
|
- (void)setApplicationDockMenu:(atom::AtomMenuModel*)model {
|
||||||
|
@ -22,9 +26,8 @@
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
|
||||||
|
|
||||||
// Don't add the "Show Tab Bar" menu item.
|
// Don't add the "Show Tab Bar" menu item.
|
||||||
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) {
|
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
|
||||||
NSWindow.allowsAutomaticWindowTabbing = NO;
|
NSWindow.allowsAutomaticWindowTabbing = NO;
|
||||||
}
|
|
||||||
|
|
||||||
atom::Browser::Get()->WillFinishLaunching();
|
atom::Browser::Get()->WillFinishLaunching();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue