Multi Commander > Support and Feedback

Looking for Refresh file list "Icons" command

(1/1)

hlhp:
When changing Folder icon to different ones.

The refresh would not update the icons,
but when I open and close "file type setup" window, then it will update.

If I want to create a script to do the "refresh", what command should I use? :)

AlanJB:
After your updates, try hitting Shift+F2 (force refresh).

hlhp:
It does not show the updated result either.

Also tried following custom commands in using Button-Editor, none of them work.

MC.Explorer.Refresh
MC.Explorer.Refresh AUTO
MC.Explorer.Refresh FORCEREBUILD
MC.Explorer.Refresh FORCEUPDATE
MC.Explorer.Refresh REDRAWUI
MC.Explorer.Refresh UPDATEUICACHE

Mathias (Author):
Icons are a slow process to fetch, so they are cached because they almost never change.

Type ":cic" in the command line field to clear the icon cache.

hlhp:

--- Quote from: Mathias (Author) on January 07, 2019, 22:02:37 ---Icons are a slow process to fetch, so they are cached because they almost never change.

Type ":cic" in the command line field to clear the icon cache.

--- End quote ---

Thank you ;D
:cic works smoothly.

It seems need to be refresh for redraw the icons.
But the refresh function only refresh the current Active panel's active tab.

I end up this long script if I need to refresh all the tabs.
Is there a way to simplify the code?


--- Code: ---//Clear Icon Cache
MC.CmdLineRun CMD=:cic;

//Refresh tabs for active Panel
@var $numTabs = TabCount("active");
@var $n;
for( $n = 0; $n < $numTabs; $n++ )
{
  MC.Explorer.Refresh;
  MC.SetActiveTab PANEL=ACTIVE TAB=NEXT;
}

//Go to inactive panel refresh tabs and come back
MC.SetActivePanel PANEL=TOGGLE;
$numTabs = TabCount("active");
for( $n = 0; $n < $numTabs; $n++ )
{
  MC.Explorer.Refresh;
  MC.SetActiveTab PANEL=ACTIVE TAB=NEXT;
}
MC.SetActivePanel PANEL=TOGGLE;
--- End code ---

Navigation

[0] Message Index

Go to full version