marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.3k stars 422 forks source link

[ENHANCEMENT] Make UniGetUI's settings export include all settings. E.g. It should also include the ignored package updates list #2377

Closed redactedscribe closed 3 months ago

redactedscribe commented 3 months ago

Please confirm these before moving forward.

Describe the improvement

Exporting UniGetUI settings does not include the list of ignored package updates which are contained in the file %LOCALAPPDATA%\UniGetUI\IgnoredPackageUpdates.json.

In fact, it looks like quite a few settings aren't restored after importing settings I think. E.g. the setting to back up installed packages periodically is now disabled when it was enabled and set to a path before exporting the UniGetUI's settings. My exported settings file does include the path, so why this periodic setting isn't re-enabled, I don't know:

"ChangeBackupOutputDirectory":"D:\\Backups\\UniGetUI",

Enabling the periodic setting manually actually does reveal that the backup output directory path has been correctly imported.

Describe how this improvement could help users

This list is (and all other configured settings are) likely important to most users, and also in my case, it was expected that the list of ignored package updates would restore after importing my previous settings. After looking at this issue further, it seems what UniGetUI exports in its settings file is quite limited. Please include all UniGetUI's settings when it exports its settings.

After deleting my previous %LOCALAPPDATA%\UniGetUI dir, now I must reconfigure some settings. Perhaps the settings export would export a ZIP instead of just producing a JSON file. The ZIP could also include IgnoredPackageUpdates.json and overwrite the local copy on importing the settings ZIP.

Thanks.

3.1.0 beta 1