Fix population of past for navigation

This commit is contained in:
Pat Hartl 2023-09-11 19:37:45 -05:00
parent 0354782e9f
commit 8910746e1e

View file

@ -271,7 +271,7 @@
async Task ChangeDirectory(FileManagerDirectory directory, bool clearFuture)
{
if (Path != null && directory.Path != Path.Path)
if (Path != null && !String.IsNullOrWhiteSpace(Path.Path) && directory.Path != Path.Path && Past.LastOrDefault()?.Path != directory.Path)
Past.Add(Path);
Path = directory;