2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix saving of playback position for long videos.

This commit is contained in:
John Preston
2019-12-27 17:09:55 +03:00
parent ac48ec5969
commit 79870600d9
4 changed files with 20 additions and 2 deletions

View File

@@ -203,6 +203,13 @@ Support::Templates& Session::supportTemplates() const {
return supportHelper().templates();
}
void Session::saveSettingsNowIfNeeded() {
if (_saveSettingsTimer.isActive()) {
_saveSettingsTimer.cancel();
Local::writeUserSettings();
}
}
} // namespace Main
Main::Session &Auth() {