From 63509faef60552bb0c4f247083c1c88259a1bdb3 Mon Sep 17 00:00:00 2001 From: relikd Date: Fri, 24 Oct 2025 00:11:18 +0200 Subject: [PATCH] ref: ignore db save if config value unchanged --- baRSS/Core Data/StoreCoordinator.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/baRSS/Core Data/StoreCoordinator.m b/baRSS/Core Data/StoreCoordinator.m index a2211cd..7b58120 100644 --- a/baRSS/Core Data/StoreCoordinator.m +++ b/baRSS/Core Data/StoreCoordinator.m @@ -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]; }