mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 07:02:39 +00:00
Mark document as changed after synchronization regardless of what has changed
This fixes a potential data loss after quitting macpass on synchronzation.
This commit is contained in:
@@ -367,6 +367,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
[self.tree synchronizeWithTree:otherTree options:KPKSynchronizationSynchronizeOption];
|
[self.tree synchronizeWithTree:otherTree options:KPKSynchronizationSynchronizeOption];
|
||||||
/* the key might have changed so update ours! */
|
/* the key might have changed so update ours! */
|
||||||
//self.compositeKey = key;
|
//self.compositeKey = key;
|
||||||
|
[self updateChangeCount:NSChangeDone];
|
||||||
NSUserNotification *notification = [[NSUserNotification alloc] init];
|
NSUserNotification *notification = [[NSUserNotification alloc] init];
|
||||||
notification.title = NSApp.applicationName;
|
notification.title = NSApp.applicationName;
|
||||||
notification.informativeText = NSLocalizedString(@"AUTO_MERGE_NOTIFICATION_TEXT", @"Sucessfully merged external changes");
|
notification.informativeText = NSLocalizedString(@"AUTO_MERGE_NOTIFICATION_TEXT", @"Sucessfully merged external changes");
|
||||||
|
|||||||
Reference in New Issue
Block a user