Author Topic: button panel text not saved.  (Read 3345 times)

Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
button panel text not saved.
« on: December 17, 2024, 07:03:20 »
Hi.
I know how to change the font and size of the text on the buttons of the panel. In the MultiButtons.xml file.
I also was showed in which file to save it and the location.
However after some days the text changes back to the default.
You can see in the photos.
how can I keep it from changing?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #1 on: December 17, 2024, 07:28:13 »
Maybe you you changed some buttons and the manual edit of the file got overwritten ?

Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: button panel text not saved.
« Reply #2 on: December 18, 2024, 16:03:28 »
Hi.

pls enlighten me.
What is "manual edit"?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #3 on: December 18, 2024, 16:12:14 »
When modifying the file manually. like when editing the font/size in the MultiButtons.xml file

Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: button panel text not saved.
« Reply #4 on: December 19, 2024, 14:00:17 »
Hi.

I am changing only the 2nd row on the Multibuttons file...
this is what i change it to"
<buttonpanel id="1" rows="5" cols="8" fontsize="12" fontname="Comic Sans MS" iconsize="medium">

All the rest is untouched.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #5 on: December 19, 2024, 14:07:53 »
So if you modify anything on the buttons inside MC. and  MultiButtons.xml is saved , Maybe the manual edits will be overwritten ?


Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: button panel text not saved.
« Reply #6 on: December 22, 2024, 15:10:22 »
Hi.
Sry but I don\t understand you.
I am modifying only the 2nd row in the file. Nothing else is changed.
How does the manual editing becomes overwritten?
as it looks to me there is some kind of a reset in the app files that replaces the updated MultiButtons.xml file with the original one.
I update the one in this location: C:\Users\XXXXXX\AppData\Roaming\MultiCommander\Config\

Am I worng?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #7 on: December 22, 2024, 15:13:33 »
If you do any modification to the buttons in the button editor in MC.. that file is rewritten.. and manual changes will be overwritten

When updating to new version.
the file under your profile is not change
This file is changed.. C:\Program Files\MultiCommander (x64)\Config\MultiButtons.xml
This is used and copied to the user profile if you do not have that file already.


Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 559
  • Old Skull
    • View Profile
Re: button panel text not saved.
« Reply #8 on: December 23, 2024, 12:15:32 »
Just in case... Don't modify MC's config files while MC is running

Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: button panel text not saved.
« Reply #9 on: January 06, 2025, 08:00:40 »
Hi.

So the simplest way to avoid the change is to not update the MC, and once in 3-4 month to check for updates and then reconfigure again the MultiBottons file.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #10 on: January 06, 2025, 11:07:56 »
No.. As I said..

The file under your userprofile is NOT change by the update.
It will copy and use the file from the install folder IF the file is missing in user profile. but only then


It is only change if you edit the buttons in Menu > Configuration > Button Editor, or activate changing the button by clicking on the "wizard mode '(on/off)' button.. Then it will save your modifications by creating a new MultiButtons.xml file and overwriting the old.
So if you had manual changes in that file. they are gone since the file was rewritten with new configuration in them.

« Last Edit: January 06, 2025, 13:06:18 by Mathias (Author) »

Babilon55

  • Junior Member
  • **
  • Posts: 17
    • View Profile
Re: button panel text not saved.
« Reply #11 on: January 08, 2025, 08:47:50 »
Hi.

To my understanding the file under my username is located here:
C:\Users\username\AppData\Roaming\MultiCommander\Config\MultiButtons.xml
and as I understand your reply this file is not supposed to change.
if you look at the search res..
the 1st file of 15428 byts is the file I edit and saved. I edit the file with the note editor.
the file of 11192 byts is the file before I edit it. and it looks as this file rewrites every now and than.
you can see also the location of each.
what am I doing wrong?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4521
    • View Profile
    • Multi Commander
Re: button panel text not saved.
« Reply #12 on: January 08, 2025, 12:41:08 »
C:\Users\username\AppData\Roaming\MultiCommander\Config\MultiButtons.xml

No that is the User file, This files is loaded by MC if it exits.. If you edit buttons in MC, this file will be updated

The file under the install folder is the "Default" file that is used if the file under the account profile does not exists. So if the file C:\Users\username\AppData\Roaming\MultiCommander\Config\MultiButtons.xml does not exists. (As in a NEW fresh install) then it will copy the file from the install folder to the user profile and use that.
When you update MC. the file in the Install folder can be update. so the default layout can be changed. but as soon as you have a file under your user profile. that will not be copied over..

You should never modify the files under program files (install folder).  They can always be overwritten by installer. They are default files to use if user copy of the file does not exists.

IF you run in portable mode. it is different. But then you do not have files under your user profile.

« Last Edit: January 08, 2025, 12:44:52 by Mathias (Author) »