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:
parent
d7879db7e5
commit
0698f096d1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user