openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Ensure config defaults for saving and loading match #52

Closed ZeroErrors closed 3 years ago

ZeroErrors commented 3 years ago

Description:

Previously config with no changes would be saved with some fields. That is because some config wasn't using the same default for loading and saving.

For example the first time you load dash and save the config it would create a file like so:

[General]
quick_view=none

[Camera]
auto_reconnect_time_secs=6

[Vehicle]
plugin=unloader

With the changes in this PR when there has been no config values changed then no config file is saved to disk so the defaults will continue to be used.

Checklist: