Page 1 of 1

New internal command to refresh the icons in file list

Posted: 2021-09-14, 15:47 UTC
by DrShark
Sometimes Total Commander can show incorrect icons, which is especially problematic in Search results panel view where Total Commander doesn't get notifications from operating system about changed items (for example, files after feeding to listbox became NTFS hard links, which should now be indicated by adding the overlay "arrows" to their icons).

Total Commander cannot watch the Search results list panel view for changes as it can do for normal folders. Although Total Commander has a command to re-read current folder, which updates some file data, the Search results view is not a folder so the command to re-read current folder is designed to leave (destroy) Search results view.

It would be possible to solve the problem by adding a new internal command just to update icons of selected files.

The topic of similar suggestion for Total Commander for Android is here

You can support both suggestions in a poll here:
https://www.ghisler.ch/board/viewtopic.php?f=7&t=75338

Re: New internal command to refresh the icons in file list

Posted: 2022-06-10, 18:45 UTC
by DrShark
Thanks for implementation in TC 10.50:
history1050.txt wrote:08.03.22 Added: New internal command cm_ReloadFileIcons re-loads all icons and icon overlays without re-reading the file lists (32/64)
So far it works without problems. It works with whole panel filelist, and it would be nice if it would have modes to work only with focused or selected files/folders.

Re: New internal command to refresh the icons in file list

Posted: 2022-06-10, 20:05 UTC
by white
DrShark wrote: 2022-06-10, 18:45 UTC So far it works without problems. It works with whole panel filelist, and it would be nice if it would have modes to work only with focused or selected files/folders.
Perhaps it is a good idea to add "[Implemented]" to the subject of your first post and start a new thread for your new suggestion.

Re: New internal command to refresh the icons in file list

Posted: 2022-06-11, 06:23 UTC
by Danny_S_Cz
For example, I would like to be able to choose my own set of icons for displaying disks.
E.g. that it would be possible to choose the path to the .dll or .icl library via the button ... or to add the library to the program folder or to the home folder where wincmd.ini is, and from that the library with icons would be loaded as another item in the window where I choose the type of icons.