Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

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
diopter
Junior Member
Junior Member
Posts: 31
Joined: 2017-02-02, 06:42 UTC
Location: Germany

Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *diopter »

If I change a cmdN= command of an active buttonbar by writing directly to the .bar file and then clicking on the corresponding button N,
everything works fine (the new command is executed), except cmdN= WAS cmdN=cm_xyz or em_xyz BEFORE I wrote it.
If it was cm_xyz or em_xyz, this old command is executed.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *Horst.Epp »

Who said that writing directly to a bar file should work ?
Thats just your wish and in no way a bug report.
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
diopter
Junior Member
Junior Member
Posts: 31
Joined: 2017-02-02, 06:42 UTC
Location: Germany

Re: Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *diopter »

Who said it should NOT work ?
It works with all commands, except cmdN was cmdN=cm_xyz or em_xyz.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *ghisler(Author) »

cm_ an em_ values are cached as numbers and will not be reloaded when you click on a button. More complex commands are stored internally as "unknown" so TC has to look in the bar file.
Author of Total Commander
https://www.ghisler.com
diopter
Junior Member
Junior Member
Posts: 31
Joined: 2017-02-02, 06:42 UTC
Location: Germany

Re: Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *diopter »

I tried to reload the button bar with OPENBAR1 barfilename.bar, but it doesn't seem to do anything when barfilename.bar was already the active bar.
Could you do a reload if the file time has changed ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Buttonbar: Change of cmdN= by writing .bar file not recognized if cmdN=cm_xyz or em_xyz

Post by *ghisler(Author) »

I will consider it.
Author of Total Commander
https://www.ghisler.com
Post Reply