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

Move non-settings session data to Data::Session.

Rename AuthSessionData to AuthSessionSettings, move data away.
This commit is contained in:
John Preston
2018-01-04 13:22:53 +03:00
parent 724fe65d72
commit 6a9556d42c
51 changed files with 574 additions and 481 deletions

View File

@@ -131,7 +131,7 @@ void fillCodes() {
if (track->failed()) {
Ui::show(Box<InformBox>("Could not audio :( Errors in 'log.txt'."));
} else {
Auth().data().setSoundOverride(key, result.paths.front());
Auth().settings().setSoundOverride(key, result.paths.front());
Local::writeUserSettings();
}
}
@@ -140,7 +140,7 @@ void fillCodes() {
}
Codes.insert(qsl("sounds_reset"), [] {
if (AuthSession::Exists()) {
Auth().data().clearSoundOverrides();
Auth().settings().clearSoundOverrides();
Local::writeUserSettings();
Ui::show(Box<InformBox>("All sound overrides were reset."));
}