Do not store IconDll_*.bar in [Buttonbar] section!
Moderators: white, Hacker, petermad, Stefan2
Do not store IconDll_*.bar in [Buttonbar] section!
As I've noticed, when one switches to a buttonbar and edits it in TC, TC adds IconDll_Filename.bar parameter to [Buttonbar] section, I have some, all with empty values, and none of them are really required in that section.
Please DO NOT STORE file-specific settings in common [Buttonbar] section, it is configuration section while IconDll_*.bar parameters are garbage (history, private file names, cache, but not really a settings that are required for work).
Please move them intoseparate IconDll section to allow redirecting this section to another INI before releasing TC 9!
Only default iconlib name may be stored in general [Buttonbar] section, not file-specific ones!
Please DO NOT STORE file-specific settings in common [Buttonbar] section, it is configuration section while IconDll_*.bar parameters are garbage (history, private file names, cache, but not really a settings that are required for work).
Please move them intoseparate IconDll section to allow redirecting this section to another INI before releasing TC 9!
Only default iconlib name may be stored in general [Buttonbar] section, not file-specific ones!
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That is not the purpose of the IconDll_Filename.bar parameter - it is there so TC can compare the current bar file with the last used - if they differ TC resets the .br2 file and reloads the bar. See: http://ghisler.ch/board/viewtopic.php?p=319496#319496I don't think BTW that many people will use different iconlibs for different BAR files (it will look inconsistently)...
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
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
I tend to agree, also since the IconDll_Filename.bar parameter also applies to the vertical buttonbar, so we actually have a parameter that in a way belongs to two different sections.a cached value, not a setting, so it shouldn't be in a setting section.
[ButtonBarCache] or something like that would be a better place to save them.
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
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
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I found no better place to store that. It is concerning the button bar, so where else should it go?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
You should definitely create a separate section with name like ButtonbarCache or ButtonbarIconLibs. It is ok for separate section because there can be many values in it, and these values only required temporarily (and nothing will be broken w/o these values) so such section name looks consistent. And since it will be a separate section, you can make parameter names shorter.
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, but should this then be relocated automatically to other ini when using AlternateUserIni? I'm not talking about RedirectSection.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thank you, TC 9.0a RC1 stores cache in separate ButtonbarCache section!
However I don't understand is it correct: I've selected wcmicon77.dll and then modified buttonbar, and TC have cached file description instead of its name in IconDll_* parameter... Shouldn't IconDll_* values be consistent with DefaultLib value (which remembers library name)?
Also I don't think that there is a need to support reading old IconDll_* location because TC will only need a single BAR file update w/o these values.
However I don't understand is it correct: I've selected wcmicon77.dll and then modified buttonbar, and TC have cached file description instead of its name in IconDll_* parameter... Shouldn't IconDll_* values be consistent with DefaultLib value (which remembers library name)?
Also I don't think that there is a need to support reading old IconDll_* location because TC will only need a single BAR file update w/o these values.
See: http://ghisler.ch/board/viewtopic.php?p=319619#319619instead of its name in IconDll_* parameter... Shouldn't IconDll_* values be consistent with DefaultLib value (which remembers library name)?
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
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