TC 9.50beta (and 9.22a) TC shows wrong icons for files

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

TC 9.50beta (and 9.22a) TC shows wrong icons for files

Post by *LonerD »

Windows 10 x64 v1903 (Home SL and Enterprise).
TC 9.50b1 (and 9.22a) x32 and x64
It's old known problem. Earlier TC on earlier Win versions (at least Win 7) have the same behavior.
Copy ico or exe file from one panel to another or just rename with another file name.
And new file still have old icon. :?
Image: https://funkyimg.com/i/2XEHQ.gif

Clean Windows and clean TC with default settings:
Image: https://i.imgur.com/GgqvfZz.gif

cm_RereadSource - nothing.
cm_ReloadBarIcons or cm_ReloadSelThumbs (I know it's another function, but tried) - nothing.
Reload explorer.exe and refresh icon cache in explorer - nothing.
Different view mode (full, brief, thumbs) or icons size in panels - nothing.

Explorer shows correct icon for file.
In TC panel correct icon appears only after TC restart
Last edited by LonerD on 2019-10-25, 12:00 UTC, edited 3 times in total.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *petermad »

Hmm - I cannot reproduce this.

Can you reproduce it with a fresh ini-file?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *ghisler(Author) »

Can you give me more details, please?
1. Which method is used when you view the file with F3?
2. Does it use a plugin (should be shown in the lister title)
3. Does it happen when you give the two icons different names?
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *LonerD »

OK. Another video demonstration.

Image: https://i.imgur.com/GgqvfZz.gif

Clean Windows 10 x64 v1809 virtual machine from MS site in VMware Workstation Player.
Clean TC 9.50ß1 x32 or x64 (default settings and no plugins).
Everyone can try and reproduce.

The same situation happens even after file deletion - new file has phantom icon from deleted old file:
Image: https://i.imgur.com/WDOZrHR.gif

The same situation on previous TC versions on old Windows versions. On Windows 7 you can copy/rename file one or two times with correct icon, and then icon "stuck" as on video above.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *petermad »

2LonerD
I still cannot reproduce it - what is your settings in "Configuration" -> "Options..." -> "Refresh" ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *LonerD »

petermad wrote: 2019-10-17, 14:42 UTCwhat is your settings in "Configuration" -> "Options..." -> "Refresh" ?
On video in my previous post - all options default (clean TC installation).
Image: https://i.imgur.com/8oscncb.png

But nothing changes with Autorefresh option enabled.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50b1 (and 9.22a) TC shows wrong icons for files

Post by *ghisler(Author) »

Sorry, no idea what could be wrong. :(
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: TC 9.50 beta 1-5 (and 9.22a) TC shows wrong icons for files

Post by *LonerD »

ghisler(Author) wrote: 2019-10-18, 15:50 UTCSorry, no idea what could be wrong. :(
Every wrong pixel fixed in TC... But now TC works wrong under modern OS, and this behaviour will not be changed? :shock:

It's totally wrong behaviour. After renaming or replacing files they have incorrect icon.
After editing .ICO-file TC shows old state, which already does not exist.

It seems like TC update icons only after user first time opens directory.
Explorer displays correct icons.
Probably, you can update icons state from Explorer/Windows after TC file operations (and/or panels refresh).
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC 9.50 beta 1-5 (and 9.22a) TC shows wrong icons for files

Post by *Horst.Epp »

LonerD wrote: 2019-11-14, 10:56 UTC
ghisler(Author) wrote: 2019-10-18, 15:50 UTCSorry, no idea what could be wrong. :(
Every wrong pixel fixed in TC... But now TC works wrong under modern OS, and this behaviour will not be changed? :shock:

It's totally wrong behaviour. After renaming or replacing files they have incorrect icon.
After editing .ICO-file TC shows old state, which already does not exist.

It seems like TC update icons only after user first time opens directory.
Explorer displays correct icons.
Probably, you can update icons state from Explorer/Windows after TC file operations (and/or panels refresh).
I have a modern OS (Windows 10 1909
and TC updates the icons if the file type is changed without any delay for me.
So its looks like you have some non standard config or something else in you "modern" OS.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.50beta (and 9.22a) TC shows wrong icons for files

Post by *petermad »

2LonerD
Explorer displays correct icons.
Not really - See: https://madsenworld.dk/tcmd/icocopy.mp4

The Video is from Windows 10 1903.

I find it interesting that in Windows 7 both Explorer and TC updates the icon correctly the first time the icon in dir c:\icotest\2\ is copied to c:\icotest\ , but a following overwriting of the icon in c:\icotest\ with the icon from c:\icotest\1\ does not update the icon. Closing and opening TC wil show the correct icon, but closing and opening Explorer will not. You have to do a taskkill and restart of Explorer before it shows the correct icon again - or you can start or restart TC, that will also make Explorer show the correct icon - believe it or not !
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply