mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Disable notifications on login (support).
This commit is contained in:
parent
9f90d3a7fc
commit
44496c7053
1 changed files with 4 additions and 2 deletions
|
@ -42,10 +42,12 @@ namespace {
|
|||
|
||||
constexpr str_const kDefaultCountry = "US";
|
||||
|
||||
void DisableAnimationsOnLogin() {
|
||||
void PrepareSupportMode() {
|
||||
anim::SetDisabled(true);
|
||||
Local::writeSettings();
|
||||
|
||||
Global::SetDesktopNotify(false);
|
||||
Global::SetSoundNotify(false);
|
||||
cSetAutoPlayGif(false);
|
||||
Local::writeUserSettings();
|
||||
}
|
||||
|
@ -632,7 +634,7 @@ void Widget::Step::finish(const MTPUser &user, QImage &&photo) {
|
|||
Auth().api().uploadPeerPhoto(Auth().user(), std::move(photo));
|
||||
}
|
||||
if (Auth().supportMode()) {
|
||||
DisableAnimationsOnLogin();
|
||||
PrepareSupportMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue