FIX: Display special folder icons only in the "All associated + EXE/LNK" mode (Windows)

This commit is contained in:
Alexander Koblov 2025-04-19 14:58:37 +03:00
commit e573e66ec7

View file

@ -2205,10 +2205,9 @@ begin
if IsDirectory or IsLinkToDirectory then
begin
{$IF DEFINED(MSWINDOWS)}
if (IconsMode = sim_standart) or
// Directory has special icon only if it has "read only" or "system" attributes
// and contains desktop.ini file
(not (DirectAccess and ((Attributes and FILE_ATTRIBUTE_ICON) <> 0) and mbFileExists(FullPath + '\desktop.ini'))) or
if (IconsMode < sim_all_and_exe) or
// Directory can has a special icon only when it has a "read only" or "system" attribute
(not (DirectAccess and ((Attributes and FILE_ATTRIBUTE_ICON) <> 0))) or
(ScreenInfo.ColorDepth < 16) then
{$ELSEIF DEFINED(UNIX) AND NOT (DEFINED(DARWIN) OR DEFINED(HAIKU))}
if (IconsMode = sim_all_and_exe) and (DirectAccess) then