2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

New structs for media autodownload settings.

This commit is contained in:
John Preston
2018-11-30 16:49:30 +04:00
parent 8708a001c7
commit e3cc8652e4
14 changed files with 542 additions and 88 deletions

View File

@@ -43,14 +43,14 @@ namespace {
constexpr str_const kDefaultCountry = "US";
void PrepareSupportMode() {
using Data::AutoDownload::Full;
anim::SetDisabled(true);
Local::writeSettings();
Global::SetDesktopNotify(false);
Global::SetSoundNotify(false);
cSetAutoDownloadAudio(dbiadNoPrivate | dbiadNoGroups);
cSetAutoDownloadGif(dbiadNoPrivate | dbiadNoGroups);
cSetAutoDownloadPhoto(dbiadNoPrivate | dbiadNoGroups);
Auth().settings().autoDownload() = Full::FullDisabled();
cSetAutoPlayGif(false);
Local::writeUserSettings();
}