Menu

#14 Configuration is not saved

1.0
closed
None
2022-12-09
2022-11-24
Yearling
No

It is impossible to save configuration .
In example when I open Setting windows, change the code page on File Tab or enable/disable automatic detection of data type on Detect type Tab, close Setting window (there is not any button save) - data are reloaded correctly, but when I reopen Setting window, settings are still in default position without change.

This problem is also present in the previous version (1.6.26.547)

Discussion

  • Raphael Noeldner

    Hello Yearling,

    Settings should be persisted under %appdata%\CSVQuickViewer in Setting.json along with old versions of teh file.
    As the application is closed it tries to save, if that would fail, the closing process is not halted.
    Maybe the application does not have sufficient rights to store the data.

     
    • Yearling

      Yearling - 2022-11-25

      Setting.json has been created in %AppData%\Roaming\CSVQuickViewer folder (there are many backup files too) correctly, the time of this file is OK (after changing code page in setting), but the content of this file (look attachemnet) is strange (JSON seems to be OK).
      What should be the structure of this file?

       
  • Raphael Noeldner

    Hello Yearling
    I did not put much thought into it. this file is simply the jason serialization of the internal class, The automated detection would be in the section "fillGuessSettings". if disabled you should have a enabled: "false" in there. Any default value will not be stored and the default is true, so you do not see a lot of these entries.

    I guess I have never checked the application with automated detection disabled. The detection is so fast that I did never turn it off and if i wanted to see the original values there is a button to switch between text and typed view.

    I assume now assume its not the serialization but possibly I am having some issue in the usage. Maybe its always enable accidently after reading the setting. Once I have it I will come back here.

     
  • Raphael Noeldner

    I have made adjustments I hope the changes are now persisted properly.

     
  • Raphael Noeldner

    • status: open --> pending
     
  • Raphael Noeldner

    • assigned_to: Raphael Noeldner
     
  • Raphael Noeldner

    • status: pending --> closed
     

Log in to post a comment.