1 /* 2 This file is part of Telegram Desktop, 3 the official desktop application for the Telegram messaging service. 4 5 For license and copyright information please follow this link: 6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL 7 */ 8 #include "settings.h" 9 10 #include "ui/emoji_config.h" 11 12 Qt::LayoutDirection gLangDir = Qt::LeftToRight; 13 14 bool gInstallBetaVersion = AppBetaVersion; 15 uint64 gAlphaVersion = AppAlphaVersion; 16 uint64 gRealAlphaVersion = AppAlphaVersion; 17 QByteArray gAlphaPrivateKey; 18 19 bool gManyInstance = false; 20 QString gKeyFile; 21 QString gWorkingDir, gExeDir, gExeName; 22 23 QStringList gSendPaths; 24 QString gStartUrl; 25 26 QString gDialogLastPath, gDialogHelperPath; // optimize QFileDialog 27 28 bool gStartMinimized = false; 29 bool gStartInTray = false; 30 bool gAutoStart = false; 31 bool gSendToMenu = false; 32 bool gUseExternalVideoPlayer = false; 33 bool gUseFreeType = false; 34 bool gAutoUpdate = true; 35 LaunchMode gLaunchMode = LaunchModeNormal; 36 bool gSeenTrayTooltip = false; 37 bool gRestartingUpdate = false, gRestarting = false, gRestartingToSettings = false, gWriteProtected = false; 38 bool gQuit = false; 39 int32 gLastUpdateCheck = 0; 40 bool gNoStartUpdate = false; 41 bool gStartToSettings = false; 42 bool gDebugMode = false; 43 44 uint32 gConnectionsInSession = 1; 45 46 QByteArray gLocalSalt; 47 int gScreenScale = style::kScaleAuto; 48 int gConfigScale = style::kScaleAuto; 49 50 QString gDateFormat = qsl("dd.MM.yy"); 51 QString gTimeFormat = qsl("hh:mm"); 52 53 RecentStickerPreload gRecentStickersPreload; 54 RecentStickerPack gRecentStickers; 55 56 RecentHashtagPack gRecentWriteHashtags, gRecentSearchHashtags; 57 58 RecentInlineBots gRecentInlineBots; 59 60 bool gPasswordRecovered = false; 61 int32 gPasscodeBadTries = 0; 62 crl::time gPasscodeLastTry = 0; 63 64 float64 gRetinaFactor = 1.; 65 int32 gIntRetinaFactor = 1; 66 67 int gOtherOnline = 0; 68 69 int32 gAutoDownloadPhoto = 0; // all auto download 70 int32 gAutoDownloadAudio = 0; 71 int32 gAutoDownloadGif = 0; 72