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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user