From 55f1ce22a965ede1f5d742eed0b25c0ed5961145 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Wed, 10 Jul 2019 12:13:56 +0200 Subject: [PATCH] Codestyle --- MacPass/MPAppDelegate.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } } }