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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user