FIX: Bug [0002386] Removable drives don't show up automatically

This commit is contained in:
Alexander Koblov 2019-11-04 09:06:15 +00:00
commit 4e017b5bd6

View file

@ -4262,9 +4262,6 @@ begin
end;
end;
type
TCustomShellTreeViewCrack = class(TCustomShellTreeView);
procedure TfrmMain.UpdateShellTreeView;
begin
actTreeView.Checked := gSeparateTree;
@ -4283,7 +4280,7 @@ begin
ReadOnly := True;
RightClickSelect := True;
FileSortType := fstFoldersFirst;
TCustomShellTreeViewCrack(ShellTreeView).PopulateWithBaseFiles;
PopulateWithBaseFiles;
Images := TImageList.Create(Self);
Images.Width := gIconsSize;
@ -4372,6 +4369,12 @@ begin
end;
dskLeft.AddToolItemExecutor(TKASDriveItem, @LeftDriveBarExecuteDrive);
dskRight.AddToolItemExecutor(TKASDriveItem, @RightDriveBarExecuteDrive);
if gSeparateTree and Assigned(ShellTreeView) then
begin
TShellTreeView(ShellTreeView).PopulateWithBaseFiles;
UpdateTreeViewPath;
end;
end;
procedure TfrmMain.AddVirtualDriveButton(dskPanel: TKASToolBar);