fix #278 - View in mini explorer, lightning icon doesn't work until explicit click in folde

This commit is contained in:
Basile Burg 2018-03-31 08:27:41 +02:00
parent 4216d02542
commit 637ab5802e
1 changed files with 4 additions and 0 deletions

View File

@ -694,6 +694,7 @@ procedure TCEMiniExplorerWidget.treeFoldersGetSelectedIndex(Sender: TObject;
Node: TTreeNode);
begin
Node.ImageIndex:=1;
Node.SelectedIndex:=1;
end;
procedure TCEMiniExplorerWidget.treeSetRoots;
@ -752,6 +753,9 @@ begin
else if location.fileExists then
treeFolders.Root := location.extractFileDir;
fLastFold:=treeFolders.Root;
fLastListOrTree := treeFolders;
if treeFolders.Items.Count > 0 then
treeFolders.Items.Item[0].Selected:=true;
end;
function TCEMiniExplorerWidget.currentLocation: string;