mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: use GoToPrevHistory instead of RemoveCurrentFileSource to navigate to the parent when the current FileSource is at the Root
This commit is contained in:
parent
d843b84a80
commit
714d00fcec
1 changed files with 5 additions and 1 deletions
|
|
@ -2986,7 +2986,11 @@ begin
|
|||
// If there is a higher level file source then change to it.
|
||||
if (FileSourcesCount > 1) and AllowChangingFileSource then
|
||||
begin
|
||||
RemoveCurrentFileSource;
|
||||
// use GoToPrevHistory instead of RemoveCurrentFileSource to navigate
|
||||
// to the parent when the current FileSource is at the Root.
|
||||
// in this way, for example, in SearchResults, after clicking "..",
|
||||
// we can navigation by cm_ViewHistoryPrev/cm_ViewHistoryNext.
|
||||
GoToPrevHistory;
|
||||
end;
|
||||
end
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue