Utilize ChangeDirectory on nav controls

This commit is contained in:
Pat Hartl 2023-09-10 17:13:26 -05:00
parent a7ddfb8ae6
commit bc35e2337e

View file

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