Fix hang when moving window during refresh

This commit is contained in:
2024-12-08 21:51:40 -05:00
parent 7ee84f079b
commit 9e2e7aabe8
2 changed files with 5 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ public static class SettingsStore
// Try to get the setting from the database that matches the name and version
var setting = entities.Settings.FirstOrDefault(s => s.Name == name);
if (setting?.Value == value)
return;
entities.SaveChanges(() =>
{
// If there was no setting we need to create it