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

Add 'Loop animated stickers' setting.

This commit is contained in:
John Preston
2019-08-01 12:42:24 +01:00
parent abf49e1672
commit 708b1d7ad4
31 changed files with 285 additions and 105 deletions

View File

@@ -230,6 +230,18 @@ public:
void setExeLaunchWarning(bool warning) {
_variables.exeLaunchWarning = warning;
}
bool autoplayGifs() const {
return _variables.autoplayGifs;
}
void setAutoplayGifs(bool value) {
_variables.autoplayGifs = value;
}
bool loopAnimatedStickers() const {
return _variables.loopAnimatedStickers;
}
void setLoopAnimatedStickers(bool value) {
_variables.loopAnimatedStickers = value;
}
private:
struct Variables {
@@ -264,6 +276,8 @@ private:
rpl::variable<bool> archiveInMainMenu = false;
rpl::variable<bool> notifyAboutPinned = true;
rpl::variable<bool> skipArchiveInSearch = false;
bool autoplayGifs = true;
bool loopAnimatedStickers = true;
static constexpr auto kDefaultSupportChatsLimitSlice
= 7 * 24 * 60 * 60;