saveFileTo should not update the save time

This commit is contained in:
Riccardo Mottola 2021-02-22 16:55:13 +01:00
parent 78e4f47c8f
commit a6fc84bc9b

View file

@ -706,15 +706,7 @@
- (BOOL)saveFileTo:(NSString *)path
{
NSFileManager *fm = [NSFileManager defaultManager];
if ([[_storage string] writeToFile:path atomically:YES])
{
ASSIGN(_lastSaveDate, [[fm fileAttributesAtPath:path traverseLink:NO] fileModificationDate]);
return YES;
}
return NO;
return [[_storage string] writeToFile:path atomically:YES];
}
- (BOOL)revertFileToSaved