mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 12:48:17 +02:00
LCL/ShellCtrls: Improve TShellTreeView.UpdateView when a folder has been created in an empty folder.
This commit is contained in:
parent
8253bd9f8f
commit
eb5db964c6
@ -1352,6 +1352,7 @@ begin
|
||||
Path := selectedPath;
|
||||
// Setting the path expands the selected node --> apply the stored state.
|
||||
Selected.Expanded := selectedWasExpanded;
|
||||
Selected.HasChildren := NodeHasChildren(Selected);
|
||||
// Avoid selected node to scroll away.
|
||||
TopItem := Items.FindNodeWithTextPath(topNodePath);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user