Fix population of past for navigation

dhcp-server
Pat Hartl 2023-09-11 19:37:45 -05:00
parent 0354782e9f
commit 8910746e1e
1 changed files with 1 additions and 1 deletions

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;