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

Move session settings to main_session_settings.

This commit is contained in:
John Preston
2020-06-18 16:47:09 +04:00
parent 3a5ede534e
commit 4d6cc58f0d
85 changed files with 294 additions and 200 deletions

View File

@@ -875,7 +875,7 @@ void ChatBackground::setTile(bool tile) {
if (this->tile() != old) {
if (!Data::details::IsTestingThemeWallPaper(_paper)
&& !Data::details::IsTestingDefaultWallPaper(_paper)) {
local().writeSettings();
local().writeSessionSettings();
}
notify(BackgroundUpdate(BackgroundUpdate::Type::Changed, tile));
}
@@ -1030,7 +1030,7 @@ bool ChatBackground::isNonDefaultBackground() {
void ChatBackground::writeNewBackgroundSettings() {
if (tile() != _tileForRevert) {
local().writeSettings();
local().writeSessionSettings();
}
local().writeBackground(
_paper,
@@ -1117,7 +1117,7 @@ void ChatBackground::reapplyWithNightMode(
ClearApplying();
keepApplied(saved.object, settingExactTheme);
if (tile() != _tileForRevert) {
local().writeSettings();
local().writeSessionSettings();
}
if (nightModeChanged) {
Local::writeSettings();