mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD/FTP: support Icon for '/' in FsExtractCustomIconW()
This commit is contained in:
parent
ec27554fad
commit
ce6f58dbda
1 changed files with 5 additions and 3 deletions
|
|
@ -1093,12 +1093,14 @@ begin
|
|||
Result:= FS_ICON_USEDEFAULT;
|
||||
if (ExtractFileDir(RemoteName) = PathDelim) then
|
||||
begin
|
||||
if RemoteName[1] = '<' then
|
||||
asRemoteName:= CeUtf16ToUtf8(RemoteName + 1);
|
||||
if (asRemoteName='') or (RemoteName[1]='<') then
|
||||
begin
|
||||
Result:= FS_ICON_EXTRACTED;
|
||||
TheIcon^.Format:= FS_ICON_FORMAT_FILE;
|
||||
asRemoteName:= CeUtf16ToUtf8(RemoteName + 1);
|
||||
if asRemoteName = cAddConnection then
|
||||
if asRemoteName = '' then
|
||||
StrPCopy(RemoteName, gStartupInfo.PluginDir+'ftp.ico')
|
||||
else if asRemoteName = cAddConnection then
|
||||
StrPCopy(RemoteName, 'list-add')
|
||||
else if asRemoteName = cQuickConnection then
|
||||
StrPCopy(RemoteName, 'view-file');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue