fix: compare settings before updating them (#5240)

This commit is contained in:
pajlada
2024-03-09 16:03:26 +01:00
committed by GitHub
parent 2e77b47ea1
commit 2361d30e4b
5 changed files with 17 additions and 4 deletions
+5 -1
View File
@@ -9,6 +9,7 @@
#include "controllers/moderationactions/ModerationAction.hpp"
#include "controllers/nicknames/Nickname.hpp"
#include "debug/Benchmark.hpp"
#include "pajlada/settings/signalargs.hpp"
#include "util/Clamp.hpp"
#include "util/PersistSignalVector.hpp"
#include "util/WindowsHelper.hpp"
@@ -257,7 +258,10 @@ void Settings::restoreSnapshot()
continue;
}
setting->marshalJSON(snapshot[path]);
pajlada::Settings::SignalArgs args;
args.compareBeforeSet = true;
setting->marshalJSON(snapshot[path], std::move(args));
}
}