From 38137e16a0e88eb83598043417b5f22e6e9aaef4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 2 Feb 2022 12:04:46 +0300 Subject: [PATCH] Save / restore experimental settings in a json. --- Telegram/SourceFiles/core/launcher.cpp | 2 ++ Telegram/lib_base | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 31e130a977..2223423808 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "core/update_checker.h" #include "core/sandbox.h" #include "base/concurrent_timer.h" +#include "base/options.h" #include @@ -320,6 +321,7 @@ int Launcher::exec() { // Must be started before Platform is started. Logs::start(this); + base::options::init(cWorkingDir() + "tdata/experimental_options.json"); if (Logs::DebugEnabled()) { const auto openalLogPath = QDir::toNativeSeparators( diff --git a/Telegram/lib_base b/Telegram/lib_base index 9efbcbfebe..a056f1dcaf 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 9efbcbfebeba378a269b73bf7040b7a1f8e7ca57 +Subproject commit a056f1dcafbc215d0c94215f15141e994782b46a