2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move a lot of settings to Core::Settings.

This commit is contained in:
John Preston
2020-06-18 22:04:16 +04:00
parent 4d6cc58f0d
commit 83538675ce
112 changed files with 1761 additions and 1482 deletions

View File

@@ -23,7 +23,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/crc32hash.h"
#include "data/data_session.h"
#include "main/main_account.h" // Account::local.
#include "main/main_accounts.h" // Accounts::activeSessionValue.
#include "main/main_domain.h" // Domain::activeSessionValue.
#include "ui/image/image.h"
#include "boxes/background_box.h"
#include "core/application.h"
@@ -548,7 +548,7 @@ void ChatBackground::start() {
set(Data::ThemeWallPaper());
}
Core::App().accounts().activeSessionValue(
Core::App().domain().activeSessionValue(
) | rpl::filter([=](Main::Session *session) {
return session != _session;
}) | rpl::start_with_next([=](Main::Session *session) {