mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05: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() {
|
||||
setTitle(lang(lng_change_phone_title));
|
||||
addButton(lang(lng_change_phone_button), [this] {
|
||||
Ui::show(Box<EnterPhone>());
|
||||
addButton(lang(lng_change_phone_button), [] {
|
||||
Ui::show(Box<ConfirmBox>(lang(lng_change_phone_warning), [] {
|
||||
Ui::show(Box<EnterPhone>());
|
||||
}));
|
||||
});
|
||||
addButton(lang(lng_cancel), [this] {
|
||||
closeBox();
|
||||
|
|
Loading…
Add table
Reference in a new issue