mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 05:52:58 +00:00
fixes possible reace condition bug still resulting in multiple warnings
This commit is contained in:
@@ -279,12 +279,12 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
if(self.fileChangeDialogOpen) {
|
||||
return; // We are already displaying an alert
|
||||
}
|
||||
/* Set the flag in this call! */
|
||||
self.fileChangeDialogOpen = YES;
|
||||
|
||||
/* Dispatch the alert to the main queue */
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
self.fileChangeDialogOpen = YES;
|
||||
|
||||
NSAlert *alert = [[NSAlert alloc] init];
|
||||
alert.alertStyle = NSWarningAlertStyle;
|
||||
alert.messageText = NSLocalizedString(@"FILE_CHANGED_BY_OTHERS_MESSAGE_TEXT", @"Message displayed when an open file was changed from another application");
|
||||
|
||||
Reference in New Issue
Block a user