mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Modern Objective-C
This commit is contained in:
@@ -155,7 +155,7 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi
|
|||||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
|
||||||
if([[MPTemporaryFileStorageCenter defaultCenter] hasPendingStorages]) {
|
if([[MPTemporaryFileStorageCenter defaultCenter] hasPendingStorages]) {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[[MPTemporaryFileStorageCenter defaultCenter] cleanupStorages];
|
[MPTemporaryFileStorageCenter.defaultCenter cleanupStorages];
|
||||||
[sender replyToApplicationShouldTerminate:YES];
|
[sender replyToApplicationShouldTerminate:YES];
|
||||||
});
|
});
|
||||||
return NSTerminateLater;
|
return NSTerminateLater;
|
||||||
|
|||||||
Reference in New Issue
Block a user