mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash after account reset after QR login.
This commit is contained in:
parent
606f5377d5
commit
f90e13f8b1
1 changed files with 11 additions and 4 deletions
|
@ -478,10 +478,17 @@ void Widget::resetAccount() {
|
||||||
_resetRequest = 0;
|
_resetRequest = 0;
|
||||||
|
|
||||||
Ui::hideLayer();
|
Ui::hideLayer();
|
||||||
moveToStep(
|
if (getData()->phone.isEmpty()) {
|
||||||
new SignupWidget(this, _account, getData()),
|
moveToStep(
|
||||||
StackAction::Replace,
|
new QrWidget(this, _account, getData()),
|
||||||
Animate::Forward);
|
StackAction::Replace,
|
||||||
|
Animate::Back);
|
||||||
|
} else {
|
||||||
|
moveToStep(
|
||||||
|
new SignupWidget(this, _account, getData()),
|
||||||
|
StackAction::Replace,
|
||||||
|
Animate::Forward);
|
||||||
|
}
|
||||||
}).fail([=](const RPCError &error) {
|
}).fail([=](const RPCError &error) {
|
||||||
_resetRequest = 0;
|
_resetRequest = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue