2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 13:47:47 +00:00

Do not rewrite settings if there are no changes

This commit is contained in:
RadRussianRus 2019-10-14 07:27:42 +03:00
parent d7879db7e5
commit 0698f096d1

View File

@ -85,10 +85,10 @@ void Manager::fill() {
}
void Manager::write(bool force) {
if (force) {
if (force && _jsonWriteTimer.isActive()) {
_jsonWriteTimer.stop();
writeTimeout();
} else if (!_jsonWriteTimer.isActive()) {
} else if (!force && !_jsonWriteTimer.isActive()) {
_jsonWriteTimer.start(kWriteJsonTimeout);
}
}