Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-671

[GUI] Locally save user settings for later use

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • unrelated
    • Yes

      The idea would be to locally store the GUI settings modified by the user in a specified location in a file, which could be yml/txt/json (easier and can be modified manually), sql, .dat (which is used by the minecraft client by default), or something else. Because currently, if the user changes the setting(s), they are not saved or cached when the program is closed, so if the person wants to generate another spigot jar server again, they have to set it again.

       

      I was thinking of placing the storage location of these options directly in the directory where the person started the BuildTools.exe executable file or in the AppData/temp folder within Windows systems. Also on Linux systems to the current or temp directory. Most desktop applications on Windows systems save their data in AppData/Local, but since in most cases users generate a spigot server only once, I don't think it's a good idea to put it in the temp directory.

       

      As for when to save the changed settings in the file, I thought of 2 events, one when the person exits the entire program, or each time a setting is changed.

       

      As an extra, add 2 options to which directory to save, under which name, and save the settings at all or not.

      Summary

      • Option to select path where to save the settings (which directory + file name)
      • Option to disable saving of settings (maybe disabled by default?)
      • Save settings on window close or each time a setting is changed by the user
      • File type to save settings to (questionable)

       

      I don't have too much free time to work on this, so I give it to others if interested.

            Unassigned Unassigned
            montlikadani montlikadani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: