Codestyle

This commit is contained in:
Michael Starke
2019-07-10 12:13:56 +02:00
parent 2d98c480da
commit 55f1ce22a9

View File

@@ -224,10 +224,9 @@ typedef NS_OPTIONS(NSInteger, MPAppStartupState) {
#endif
self.startupState |= MPAppStartupStateFinishedLaunch;
// Here we just opt-in for allowing our bar to be customized throughout the app.
if ([[NSApplication sharedApplication] respondsToSelector:@selector(isAutomaticCustomizeTouchBarMenuItemEnabled)])
{
if (@available(macOS 10.12.2, *)) {
[NSApplication sharedApplication].automaticCustomizeTouchBarMenuItemEnabled = YES;
if([NSApplication.sharedApplication respondsToSelector:@selector(isAutomaticCustomizeTouchBarMenuItemEnabled)]) {
if(@available(macOS 10.12.2, *)) {
NSApplication.sharedApplication.automaticCustomizeTouchBarMenuItemEnabled = YES;
}
}
}