mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show warning message before changing phone number.
This commit is contained in:
parent
be659e2611
commit
0ce6e8a33a
1 changed files with 4 additions and 2 deletions
|
@ -304,8 +304,10 @@ bool ChangePhoneBox::EnterCode::sendCodeFail(const RPCError &error) {
|
||||||
|
|
||||||
void ChangePhoneBox::prepare() {
|
void ChangePhoneBox::prepare() {
|
||||||
setTitle(lang(lng_change_phone_title));
|
setTitle(lang(lng_change_phone_title));
|
||||||
addButton(lang(lng_change_phone_button), [this] {
|
addButton(lang(lng_change_phone_button), [] {
|
||||||
Ui::show(Box<EnterPhone>());
|
Ui::show(Box<ConfirmBox>(lang(lng_change_phone_warning), [] {
|
||||||
|
Ui::show(Box<EnterPhone>());
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
addButton(lang(lng_cancel), [this] {
|
addButton(lang(lng_cancel), [this] {
|
||||||
closeBox();
|
closeBox();
|
||||||
|
|
Loading…
Add table
Reference in a new issue