mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Allow boxes that don't hide by escape / click.
This commit is contained in:
@@ -659,10 +659,14 @@ void Messenger::forceLogOut(const TextWithEntities &explanation) {
|
||||
const auto box = Ui::show(Box<InformBox>(
|
||||
explanation,
|
||||
lang(lng_passcode_logout)));
|
||||
box->setCloseByEscape(false);
|
||||
box->setCloseByOutsideClick(false);
|
||||
connect(box, &QObject::destroyed, [=] {
|
||||
InvokeQueued(this, [=] {
|
||||
resetAuthorizationKeys();
|
||||
loggedOut();
|
||||
crl::on_main(this, [=] {
|
||||
if (AuthSession::Exists()) {
|
||||
resetAuthorizationKeys();
|
||||
loggedOut();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user