Update NavigationController.cs
This commit is contained in:
parent
47a5b502b9
commit
fd7d72b986
@ -121,10 +121,7 @@ namespace TelegramBotBase.Form.Navigation
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual async Task PopToRootAsync()
|
public virtual async Task PopToRootAsync()
|
||||||
{
|
{
|
||||||
if (Index == 0)
|
while (Index > 0)
|
||||||
return;
|
|
||||||
|
|
||||||
while (History.Count > 1)
|
|
||||||
{
|
{
|
||||||
await PopAsync();
|
await PopAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user