Removed special code for 10.12 and blow since we now target 10.13 and above

This commit is contained in:
Michael Starke
2020-07-08 22:11:34 +02:00
parent c5694293a5
commit be2b5072bf
10 changed files with 25 additions and 144 deletions

View File

@@ -219,11 +219,7 @@ 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;
}
}
NSApplication.sharedApplication.automaticCustomizeTouchBarMenuItemEnabled = YES;
}
#pragma mark -