ref: ignore db save if config value unchanged
This commit is contained in:
@@ -57,7 +57,9 @@
|
|||||||
opt = [[Options alloc] initWithEntity:Options.entity insertIntoManagedObjectContext:moc];
|
opt = [[Options alloc] initWithEntity:Options.entity insertIntoManagedObjectContext:moc];
|
||||||
opt.key = key;
|
opt.key = key;
|
||||||
}
|
}
|
||||||
opt.value = value;
|
if (opt.value != value) {
|
||||||
|
opt.value = value;
|
||||||
|
}
|
||||||
[self saveContext:moc andParent:YES];
|
[self saveContext:moc andParent:YES];
|
||||||
[moc reset];
|
[moc reset];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user