Utilize ChangeDirectory on nav controls

dhcp-server
Pat Hartl 2023-09-10 17:13:26 -05:00
parent a7ddfb8ae6
commit bc35e2337e
1 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@
if (Past.Count > 0)
{
Future.Add(Path);
Path = Past.Last();
ChangeDirectory(Past.Last(), false);
Past = Past.Take(Past.Count - 1).ToList();
}
}
@ -312,7 +312,7 @@
if (Future.Count > 0)
{
Past.Add(Path);
Path = Future.First();
ChangeDirectory(Future.First(), false);
Future = Future.Skip(1).ToList();
}
}