UPD: UPD: jump to Home directory instead of Exe directory after decteting the driver unmounted, Keep it consistent with unmouting in DC

(cherry picked from commit f11073847b)
This commit is contained in:
rich2014 2023-12-22 23:38:17 +08:00 committed by Alexander Koblov
commit 926d30e419

View file

@ -7046,9 +7046,9 @@ begin
if (EventType = dweDriveRemoved) and Assigned(ADrive) then
begin
if IsInPath(ADrive^.Path, ActiveFrame.CurrentPath, True, True) then
ActiveFrame.CurrentPath:= gpExePath
ActiveFrame.CurrentPath:= GetHomeDir
else if IsInPath(ADrive^.Path, NotActiveFrame.CurrentPath, True, True) then
NotActiveFrame.CurrentPath:= gpExePath;
NotActiveFrame.CurrentPath:= GetHomeDir;
end;
UpdateSelectedDrives;