mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Do not rewrite settings if there are no changes
This commit is contained in:
@@ -85,10 +85,10 @@ void Manager::fill() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Manager::write(bool force) {
|
void Manager::write(bool force) {
|
||||||
if (force) {
|
if (force && _jsonWriteTimer.isActive()) {
|
||||||
_jsonWriteTimer.stop();
|
_jsonWriteTimer.stop();
|
||||||
writeTimeout();
|
writeTimeout();
|
||||||
} else if (!_jsonWriteTimer.isActive()) {
|
} else if (!force && !_jsonWriteTimer.isActive()) {
|
||||||
_jsonWriteTimer.start(kWriteJsonTimeout);
|
_jsonWriteTimer.start(kWriteJsonTimeout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user