settings.cpp 1.7 KB

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