Author Topic: MultiDataViewer color theme change not saving  (Read 18836 times)

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
MultiDataViewer color theme change not saving
« on: October 12, 2017, 16:14:43 »
Nothing I do will make MDV hold a new setting/config.  MC 7.5 b2381, W7x64

E.G.: If I set it to dark theme it's OK for the open file only & it holds only whilst MDV is open for that instance.

If I make/set a new profile for MDV to use a specific theme, when I reopen MDV it has gone back to default. 
If I apply new settings with multiple files open I pageup/down & the other files open as default not as the theme I just applied to the open file. The theme change works on the open file only :( 
Restarting MC makes no difference.

I had this feature working globally before so am confused.  :-\
Should I try manually editing the .xml?

....Also I noticed that throughout MDV there is a typo - Stripes is entered as 'strips' - not quite the same thing ;)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4489
    • View Profile
    • Multi Commander
Re: MultiDataViewer color theme change not saving
« Reply #1 on: October 13, 2017, 08:14:35 »
Options > Configure Profiles
And for the [Default]  profile select what "Color Theme" you want to use

If you created more profiles they need to have a file matching filter.. and that profile will only be used if that filter is matched

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #2 on: October 14, 2017, 12:56:48 »
Thanks Mathias

I had been trying to define a new profile as new default, not changing the default.  :-[
I had used the 'new' & set up what I wanted under a new profile name, applied & saved but the config always went back to 'default' at it's initial default settings.

Should we not be able to set & call a new custom profile as a new 'default'? 




Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4489
    • View Profile
    • Multi Commander
Re: MultiDataViewer color theme change not saving
« Reply #3 on: October 15, 2017, 14:23:27 »
The default profile is the one that is loaded if no other of the profiles are matching..
that why you can't set a file matching filter for the default profile.

So if you want to change the default one.. the you need to save over the default.

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #4 on: October 15, 2017, 14:56:16 »
OK thanks Mathias.

Need to add that the changed default had reverted to the original one after I rebooted the PC.  Can't see why as the AV etc is supposed to leave MC alone, & the change had been global before the cold boot.  ::)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4489
    • View Profile
    • Multi Commander
Re: MultiDataViewer color theme change not saving
« Reply #5 on: October 15, 2017, 18:30:53 »
If you run normal installation check that the file is changed when you save
C:\Users\<username>AppData\Roaming\MultiCommander\Config\Extensions\MultiFileViewer\MultiFileViewer.xml

maybe there is some permission issue..

if you run portable edition, then it is located under the the start folder..


Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #6 on: October 16, 2017, 12:59:27 »
Thanks Mathias  ;)
It is saving. 
I checked the datestamp & it shows it was updated yesterday. 
Todays cold-boot reverted back to original default. 
Have just watched it update the file timestamp again as I re-saved with new default.
As far as I can see AV logs show it is NOT being sandboxed (If it were, would the timestamp change..?)
Weird. ???

This is the updated/saved xml - it looks correct to me & it is working globally :-\

Code: [Select]
<?xml version="1.0"?>
<config>
  <options>
    <smartselection value="1">
      <allow_dot value="0"/>
      <allow_slash value="0"/>
      <allow_backslash value="0"/>
      <allow_numbers value="1"/>
      <allow_underscore value="1"/>
    </smartselection>
    <buffersize value="512"/>
    <bigfilelimit value="2048"/>
    <wordwrapfixed value="1"/>
    <wordwraplimit value="80"/>
    <autocopyselection value="1"/>
    <autocopyselection_onlyonsmart value="0"/>
  </options>
  <colorthemes>
    <colortheme id="0" default="1" name="[Default]">
      <default text="000000" background="ffffff"/>
      <selection text="ffffff" background="3399ff"/>
      <link text="0000dc" background="-1"/>
      <linkhover text="009b00" background="-1"/>
      <linenum text="fffee0" background="68838b"/>
      <highlight1 text="000000" background="fefe94"/>
      <highlight2 text="000000" background="00ffff"/>
      <highlight3 text="000000" background="fe88fe"/>
      <highlight4 text="000000" background="4cfe4c"/>
      <highlight5 text="000000" background="7e7efe"/>
      <syntax1 text="202fe9" background="-1"/>
      <syntax2 text="3097ce" background="-1"/>
      <syntax3 text="399b9b" background="-1"/>
      <syntax4 text="cd24c4" background="-1"/>
      <syntax5 text="2e8924" background="-1"/>
      <syntax6 text="d1522d" background="-1"/>
      <syntax7 text="6ccb26" background="-1"/>
      <syntax8 text="a54d97" background="-1"/>
      <rowlines value="c0c0c0"/>
      <strips_even value="c0ffff"/>
      <strips_odd value="afeeee"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="bfe3f7"/>
      <gradient_end value="b3fdc9"/>
    </colortheme>
    <colortheme id="c9556fbc9e884bc8adbc538f99e1344d" name="Dark">
      <default text="ffffe0" background="282828"/>
      <selection text="ffffff" background="317dfd"/>
      <link text="0000dc" background="-1"/>
      <linkhover text="009b00" background="-1"/>
      <linenum text="ffd700" background="a52a00"/>
      <highlight1 text="000000" background="fdfd8b"/>
      <highlight2 text="000000" background="5dfeff"/>
      <highlight3 text="000000" background="ff5dfe"/>
      <highlight4 text="000000" background="41ff41"/>
      <highlight5 text="a9fbab" background="4a53fa"/>
      <syntax1 text="458de6" background="-1"/>
      <syntax2 text="55aede" background="-1"/>
      <syntax3 text="41cbd3" background="-1"/>
      <syntax4 text="c031bc" background="-1"/>
      <syntax5 text="2eae1b" background="-1"/>
      <syntax6 text="e9382a" background="-1"/>
      <syntax7 text="5adb4f" background="-1"/>
      <syntax8 text="e9df2d" background="-1"/>
      <rowlines value="666666"/>
      <strips_even value="320a0a"/>
      <strips_odd value="422020"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="000000"/>
      <gradient_end value="660000"/>
    </colortheme>
    <colortheme id="c457c511b48a4bb3888dd8721daecef0" name="Blue">
      <default text="fefe94" background="0000a0"/>
      <selection text="0000a0" background="ffff94"/>
      <link text="ffffff" background="-1"/>
      <linkhover text="04ff04" background="-1"/>
      <linenum text="02fa1a" background="00006a"/>
      <highlight1 text="000000" background="e2933c"/>
      <highlight2 text="000000" background="00ffff"/>
      <highlight3 text="effda8" background="cc00cb"/>
      <highlight4 text="000000" background="00ff00"/>
      <highlight5 text="4209ba" background="27b0d7"/>
      <syntax1 text="4de2f7" background="-1"/>
      <syntax2 text="3ccbe4" background="-1"/>
      <syntax3 text="72d896" background="-1"/>
      <syntax4 text="ce39d6" background="-1"/>
      <syntax5 text="009204" background="-1"/>
      <syntax6 text="18ea01" background="-1"/>
      <syntax7 text="f88e7f" background="-1"/>
      <syntax8 text="d35ef1" background="-1"/>
      <rowlines value="1e34d2"/>
      <strips_even value="2c3ee2"/>
      <strips_odd value="1322d9"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="bfe3f7"/>
      <gradient_end value="b3fdc9"/>
    </colortheme>
    <colortheme id="c3e5cb1db9a946778903613cd3829446" name="Yellow">
      <default text="0000ff" background="feff7f"/>
      <selection text="f8f9b5" background="425df5"/>
      <link text="1d11fe" background="-1"/>
      <linkhover text="04b400" background="-1"/>
      <linenum text="000000" background="ffa143"/>
      <highlight1 text="ffd700" background="8a0000"/>
      <highlight2 text="000000" background="6afeff"/>
      <highlight3 text="000000" background="fe6cfe"/>
      <highlight4 text="000000" background="8eff8e"/>
      <highlight5 text="0af4d1" background="005500"/>
      <syntax1 text="202fe9" background="-1"/>
      <syntax2 text="3097ce" background="-1"/>
      <syntax3 text="399b9b" background="-1"/>
      <syntax4 text="cd24c4" background="-1"/>
      <syntax5 text="2e8924" background="-1"/>
      <syntax6 text="d1522d" background="-1"/>
      <syntax7 text="6ccb26" background="-1"/>
      <syntax8 text="a54d97" background="-1"/>
      <rowlines value="ffd700"/>
      <strips_even value="ffd700"/>
      <strips_odd value="ffff00"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="f8cc1f"/>
      <gradient_end value="ffff06"/>
    </colortheme>
  </colorthemes>
  <viewprofiles>
    <viewprofile id="0" default="1" name="[Default]">
      <hyperlinks value="-1"/>
      <rowlines value="-1"/>
      <strips value="1"/>
      <linenum value="-1"/>
      <font value="Courier New,10"/>
      <colortheme value="c9556fbc9e884bc8adbc538f99e1344d"/>
      <fullpathfilter value="0"/>
      <filter value=""/>
      <formater value="auto"/>
    </viewprofile>
    <viewprofile id="1" viewmode="0" name="1">
      <hyperlinks value="-1"/>
      <rowlines value="1"/>
      <strips value="1"/>
      <linenum value="0"/>
      <font value="Courier New,10"/>
      <colortheme value="c457c511b48a4bb3888dd8721daecef0"/>
      <fullpathfilter value="0"/>
      <filter value="1"/>
      <formater value="8ea5146bbf7245bd8b6142f26ddfd30e"/>
    </viewprofile>
  </viewprofiles>
</config>

Update
Rebooted & I'm back to original default, also reverts if I restart MC in the same session...
Timestamps update.  I will see if I can see anything else in the logs.
« Last Edit: October 16, 2017, 15:55:44 by Ulfhednar »

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #7 on: October 18, 2017, 13:30:32 »
Still cannot see an obvious reason for reverting to the original default. 
Wondered if MC was reading the .bak but removing it makes no difference.

I tried comparing what was saved yesterday with the backup & also todays save - there doesn't seem to be any difference in the changes I make, they work until MC is restarted

Is there an error in the way the xml is being written causing it to be bypassed on restart?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4489
    • View Profile
    • Multi Commander
Re: MultiDataViewer color theme change not saving
« Reply #8 on: October 18, 2017, 14:27:38 »
Strang. I can not recreate that
The Config file is only read when it start the first time, then the info is kept in memory. (until MC is closed)
It might fail to read the config file if the xml is not valid. like if you edit it by hand and forgot a character in the correct place.
If you open the xml file in a browser they will complain if it is not correctly formatted.

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #9 on: October 19, 2017, 14:33:33 »
Hi Mathias
I loaded it into an editor with no errors shown
I tried a browser & it said no style info
I used https://www.xmlvalidation.com  & it said no errors.

Still will not fully load on start...
Strips (Stripes) &/or Lines are the only settings I can get to persist when altering the default.  This implies it is being read & actioned but no color change loaded ???
Are there any dependencies which I might not yet have installed since the clean OS install?  (I've done all the C++ & .Net varieties).

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4489
    • View Profile
    • Multi Commander
Re: MultiDataViewer color theme change not saving
« Reply #10 on: October 19, 2017, 17:39:23 »
No MC do not have any external dependencies..  If it has MC would not even start

I don't know why the settings are reseting for you.. You can always save the settings you want then then set the file as readonly

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: MultiDataViewer color theme change not saving
« Reply #11 on: October 21, 2017, 13:33:47 »
Thanks Mathias.
I had already tried read-only & it did not work.
It had applied & saved the settings & on restart it reverted (the lines ON had stayed on) but color was back on default white.
When I tried to save the config again it flagged the xml as read-only.

I can't see why it saves & persists with lines & stripes settings etc but not a color change.   ::) ???
I will continue messing about & see if anything changes/presents evidence of why this happens.

-----
Update
I just noticed that if I apply the setting the file updates the timestamp, but (without restarting MC) when I open another file although the setting is maintained (dark stays dark in the same session,) the config options do not reflect a change has been made. (see pic)  Important?
Decided to edit the xml externally
Code: [Select]
<?xml version="1.0"?>
<config>
  <options>
    <smartselection value="1">
      <allow_dot value="0"/>
      <allow_slash value="0"/>
      <allow_backslash value="0"/>
      <allow_numbers value="1"/>
      <allow_underscore value="1"/>
    </smartselection>
    <buffersize value="512"/>
    <bigfilelimit value="2048"/>
    <wordwrapfixed value="1"/>
    <wordwraplimit value="80"/>
    <autocopyselection value="1"/>
    <autocopyselection_onlyonsmart value="0"/>
  </options>
  <colorthemes>
    <colortheme id="c9556fbc9e884bc8adbc538f99e1344d" default="1" name="[Default]">
<!--  <default text="000000" backgro//und="ffffff"/>
      <selection text="ffffff" backgro//und="3399ff"/>
      <link text="0000dc" background="-1//"/>
      <linkhover text="009b00" background=/"-1"/>
      <linenum text="fffee0" background="68/838b"/>
      <highlight1 text="000000" background="/fefe94"/>
      <highlight2 text="000000" background="0/0ffff"/>
      <highlight3 text="000000" background="fe/88fe"/>
      <highlight4 text="000000" background="4cf/e4c"/>
      <highlight5 text="000000" background="7e7e/fe"/>
      <syntax1 text="202fe9" background="-1"/>
      <syntax2 text="3097ce" background="-1"/>
      <syntax3 text="399b9b" background="-1"/>
      <syntax4 text="cd24c4" background="-1"/>
      <syntax5 text="2e8924" background="-1"/>
      <syntax6 text="d1522d" background="-1"/>
      <syntax7 text="6ccb26" background="-1"/>
      <syntax8 text="a54d97" background="-1"/>
      <rowlines value="c0c0c0"/>
      <strips_even value="c0ffff"/>
      <strips_odd value="afeeee"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="bfe3f7"/>
      <gradient_end value="b3fdc9"/>-->
      <default text="ffffe0" background="282828"/>
      <selection text="ffffff" background="317dfd"/>
      <link text="0000dc" background="-1"/>
      <linkhover text="009b00" background="-1"/>
      <linenum text="ffd700" background="a52a00"/>
      <highlight1 text="000000" background="fdfd8b"/>
      <highlight2 text="000000" background="5dfeff"/>
      <highlight3 text="000000" background="ff5dfe"/>
      <highlight4 text="000000" background="41ff41"/>
      <highlight5 text="a9fbab" background="4a53fa"/>
      <syntax1 text="458de6" background="-1"/>
      <syntax2 text="55aede" background="-1"/>
      <syntax3 text="41cbd3" background="-1"/>
      <syntax4 text="c031bc" background="-1"/>
      <syntax5 text="2eae1b" background="-1"/>
      <syntax6 text="e9382a" background="-1"/>
      <syntax7 text="5adb4f" background="-1"/>
      <syntax8 text="e9df2d" background="-1"/>
      <rowlines value="666666"/>
      <strips_even value="320a0a"/>
      <strips_odd value="422020"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="000000"/>
      <gradient_end value="660000"/>
    </colortheme>
    <colortheme id="c9556fbc9e884bc8adbc538f99e1344d" name="Dark">
      <default text="ffffe0" background="282828"/>
      <selection text="ffffff" background="317dfd"/>
      <link text="0000dc" background="-1"/>
      <linkhover text="009b00" background="-1"/>
      <linenum text="ffd700" background="a52a00"/>
      <highlight1 text="000000" background="fdfd8b"/>
      <highlight2 text="000000" background="5dfeff"/>
      <highlight3 text="000000" background="ff5dfe"/>
      <highlight4 text="000000" background="41ff41"/>
      <highlight5 text="a9fbab" background="4a53fa"/>
      <syntax1 text="458de6" background="-1"/>
      <syntax2 text="55aede" background="-1"/>
      <syntax3 text="41cbd3" background="-1"/>
      <syntax4 text="c031bc" background="-1"/>
      <syntax5 text="2eae1b" background="-1"/>
      <syntax6 text="e9382a" background="-1"/>
      <syntax7 text="5adb4f" background="-1"/>
      <syntax8 text="e9df2d" background="-1"/>
      <rowlines value="666666"/>
      <strips_even value="320a0a"/>
      <strips_odd value="422020"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="000000"/>
      <gradient_end value="660000"/>
    </colortheme>
    <colortheme id="c457c511b48a4bb3888dd8721daecef0" name="Blue">
      <default text="fefe94" background="0000a0"/>
      <selection text="0000a0" background="ffff94"/>
      <link text="ffffff" background="-1"/>
      <linkhover text="04ff04" background="-1"/>
      <linenum text="02fa1a" background="00006a"/>
      <highlight1 text="000000" background="e2933c"/>
      <highlight2 text="000000" background="00ffff"/>
      <highlight3 text="effda8" background="cc00cb"/>
      <highlight4 text="000000" background="00ff00"/>
      <highlight5 text="4209ba" background="27b0d7"/>
      <syntax1 text="4de2f7" background="-1"/>
      <syntax2 text="3ccbe4" background="-1"/>
      <syntax3 text="72d896" background="-1"/>
      <syntax4 text="ce39d6" background="-1"/>
      <syntax5 text="009204" background="-1"/>
      <syntax6 text="18ea01" background="-1"/>
      <syntax7 text="f88e7f" background="-1"/>
      <syntax8 text="d35ef1" background="-1"/>
      <rowlines value="1e34d2"/>
      <strips_even value="2c3ee2"/>
      <strips_odd value="1322d9"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="bfe3f7"/>
      <gradient_end value="b3fdc9"/>
    </colortheme>
    <colortheme id="c3e5cb1db9a946778903613cd3829446" name="Yellow">
      <default text="0000ff" background="feff7f"/>
      <selection text="f8f9b5" background="425df5"/>
      <link text="1d11fe" background="-1"/>
      <linkhover text="04b400" background="-1"/>
      <linenum text="000000" background="ffa143"/>
      <highlight1 text="ffd700" background="8a0000"/>
      <highlight2 text="000000" background="6afeff"/>
      <highlight3 text="000000" background="fe6cfe"/>
      <highlight4 text="000000" background="8eff8e"/>
      <highlight5 text="0af4d1" background="005500"/>
      <syntax1 text="202fe9" background="-1"/>
      <syntax2 text="3097ce" background="-1"/>
      <syntax3 text="399b9b" background="-1"/>
      <syntax4 text="cd24c4" background="-1"/>
      <syntax5 text="2e8924" background="-1"/>
      <syntax6 text="d1522d" background="-1"/>
      <syntax7 text="6ccb26" background="-1"/>
      <syntax8 text="a54d97" background="-1"/>
      <rowlines value="ffd700"/>
      <strips_even value="ffd700"/>
      <strips_odd value="ffff00"/>
      <gradient value="0"/>
      <gradient_style value="2"/>
      <gradient_begin value="f8cc1f"/>
      <gradient_end value="ffff06"/>
    </colortheme>
  </colorthemes>
  <viewprofiles>
    <viewprofile id="0" default="1" name="[Default]">
      <hyperlinks value="-1"/>
      <rowlines value="-1"/>
      <strips value="-1"/>
      <linenum value="-1"/>
      <font value="Courier New,10"/>
      <colortheme value="c9556fbc9e884bc8adbc538f99e1344d"/>
      <fullpathfilter value="0"/>
      <filter value=""/>
      <formater value="4c1be33932274bc2ab40204dac3ed985"/>
    </viewprofile>
    <viewprofile id="1" viewmode="0" name="1">
      <hyperlinks value="-1"/>
      <rowlines value="1"/>
      <strips value="1"/>
      <linenum value="0"/>
      <font value="Courier New,10"/>
      <colortheme value="c457c511b48a4bb3888dd8721daecef0"/>
      <fullpathfilter value="0"/>
      <filter value="1"/>
      <formater value="8ea5146bbf7245bd8b6142f26ddfd30e"/>
    </viewprofile>
  </viewprofiles>
</config>

This works....  ;)
Hopefully that will give you a clue as to what is happening.
« Last Edit: October 21, 2017, 14:02:56 by Ulfhednar »