- Updating NavigateTo to set PreviousForm now correctly
This commit is contained in:
parent
52c01b3dfd
commit
e13cb6d4ef
@ -119,12 +119,12 @@ namespace TelegramBotBase.Form
|
|||||||
|
|
||||||
ds.FormSwitched = true;
|
ds.FormSwitched = true;
|
||||||
|
|
||||||
|
ds.PreviousForm = ds.ActiveForm;
|
||||||
|
|
||||||
ds.ActiveForm = newForm;
|
ds.ActiveForm = newForm;
|
||||||
newForm.Client = this.Client;
|
newForm.Client = this.Client;
|
||||||
newForm.Device = ds;
|
newForm.Device = ds;
|
||||||
|
|
||||||
ds.PreviousForm = this;
|
|
||||||
|
|
||||||
await newForm.Init(args);
|
await newForm.Init(args);
|
||||||
|
|
||||||
await this.Closed();
|
await this.Closed();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user