ref: ignore db save if config value unchanged

This commit is contained in:
relikd
2025-10-24 00:11:18 +02:00
parent 7047d99205
commit 63509faef6

View File

@@ -57,7 +57,9 @@
opt = [[Options alloc] initWithEntity:Options.entity insertIntoManagedObjectContext:moc];
opt.key = key;
}
opt.value = value;
if (opt.value != value) {
opt.value = value;
}
[self saveContext:moc andParent:YES];
[moc reset];
}