ColorFilters entry in WinCmd disappears

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
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ColorFilters entry in WinCmd disappears

Post by *petermad »

Is it normal behavior?
There are several parameters in wincmd.ini that are simply removed, when the default value is chosen from the GUI. So, yes.
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
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ColorFilters entry in WinCmd disappears

Post by *petermad »

There is another problem with keeping comments in wincmd.ini:

Some sections are moved to the end of the ini file when an item in the section is changed via the configuration dialog - it is mostly sections that is ordered, because a change in such sections can mean that the order of the items and hence the name of the items has to be changed.

It is sections as for example: [Associations], [ViewModes], [ViewModeSwitch], [Dirmenu], [user]. [ContentPlugins], [ListerPlugins] - comments in most of these sections will simply be deleted if the section is changed via the configuration dialog.

So using comments in wincmd.ini is highly unreliable.
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: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ColorFilters entry in WinCmd disappears

Post by *ghisler(Author) »

Comments work fine in sections like [configuration], where settings are written one at a time. They don't work in sections which are written as a whole via WritePrivateProfileSection, e.g. button bar, start menu etc. which do not contain various options but things like items of a list, or a history.
Author of Total Commander
https://www.ghisler.com
Post Reply