mirror of https://github.com/procxx/kepka.git
Disable notifications on login (support).
This commit is contained in:
parent
9f90d3a7fc
commit
44496c7053
|
@ -42,10 +42,12 @@ namespace {
|
||||||
|
|
||||||
constexpr str_const kDefaultCountry = "US";
|
constexpr str_const kDefaultCountry = "US";
|
||||||
|
|
||||||
void DisableAnimationsOnLogin() {
|
void PrepareSupportMode() {
|
||||||
anim::SetDisabled(true);
|
anim::SetDisabled(true);
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
|
|
||||||
|
Global::SetDesktopNotify(false);
|
||||||
|
Global::SetSoundNotify(false);
|
||||||
cSetAutoPlayGif(false);
|
cSetAutoPlayGif(false);
|
||||||
Local::writeUserSettings();
|
Local::writeUserSettings();
|
||||||
}
|
}
|
||||||
|
@ -632,7 +634,7 @@ void Widget::Step::finish(const MTPUser &user, QImage &&photo) {
|
||||||
Auth().api().uploadPeerPhoto(Auth().user(), std::move(photo));
|
Auth().api().uploadPeerPhoto(Auth().user(), std::move(photo));
|
||||||
}
|
}
|
||||||
if (Auth().supportMode()) {
|
if (Auth().supportMode()) {
|
||||||
DisableAnimationsOnLogin();
|
PrepareSupportMode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue