From 1f7fb693a970887e3b168071873062f7428bddde Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Thu, 12 Jul 2018 22:55:10 +0200 Subject: [PATCH] Modern Objective-C --- MacPass/MPAppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index dc1d2f30..9b9d329f 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -155,7 +155,7 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { if([[MPTemporaryFileStorageCenter defaultCenter] hasPendingStorages]) { dispatch_async(dispatch_get_main_queue(), ^{ - [[MPTemporaryFileStorageCenter defaultCenter] cleanupStorages]; + [MPTemporaryFileStorageCenter.defaultCenter cleanupStorages]; [sender replyToApplicationShouldTerminate:YES]; }); return NSTerminateLater;