diff --git a/Telegram/SourceFiles/core/kotato_settings.cpp b/Telegram/SourceFiles/core/kotato_settings.cpp index e3b7ebbd2..8edac6f39 100644 --- a/Telegram/SourceFiles/core/kotato_settings.cpp +++ b/Telegram/SourceFiles/core/kotato_settings.cpp @@ -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); } }