Defined colors by file type doesn't always take effect

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Defined colors by file type doesn't always take effect

Post by *petermad »

I have defined a color for files not older than 1 hour, and I have WatchDirs=55.

When I make a change to a file with a Lister plugin, so that the file date is set to current time, then the date is changed automatically in the file panel for the file, as it should be, but the color isn't changed to the not-older-than-1-hour color until I reload the file panel or go out of and back into the directory.

To reproduce either make a change to an older file with syn2 or synplus plugin. Or use any plugin and watch it's ini file when changes are made to it by the plugin.

This applies only to lister run internally. If I run Lister as separate instance the color is updated alright, as it is if I use other external programs.

This applies both to TC 8.0 and earlier (TC 7.56a).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This behaviour is intentional, the color is NOT re-calculated when there is a WatchDirs notification.

Why? Loading colors is one of the slowest things in TC, and with sizes possibly changing every second (e.g. during downloads) this would cause a horrible slowdown.
Author of Total Commander
https://www.ghisler.com
Post Reply