diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index 126c565e..f7a06b2a 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -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; } } }