diff --git a/LANCommander/Components/FileManagerComponents/FileManager.razor b/LANCommander/Components/FileManagerComponents/FileManager.razor index d2a32c1..2db62bd 100644 --- a/LANCommander/Components/FileManagerComponents/FileManager.razor +++ b/LANCommander/Components/FileManagerComponents/FileManager.razor @@ -214,7 +214,8 @@ void ChangeDirectory(FileManagerDirectory directory, bool clearFuture) { - Past.Add(Path); + if (Path != null && directory.Path != Path.Path) + Past.Add(Path); Path = directory;