mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [0002386] Removable drives don't show up automatically
This commit is contained in:
parent
eeffa52c01
commit
4e017b5bd6
1 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue