summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tidal_dl_ng/config.py')
-rw-r--r--tidal_dl_ng/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tidal_dl_ng/config.py b/tidal_dl_ng/config.py
index bdcc70d..cc5ca2d 100644
--- a/tidal_dl_ng/config.py
+++ b/tidal_dl_ng/config.py
@@ -36,7 +36,10 @@ class BaseConfig:
result = True
except (JSONDecodeError, TypeError, FileNotFoundError):
self.data = self.cls_model()
- self.save()
+
+ # Call save in case of we need to update the saved config, due to changes in code.
+ # TODO: Compare if config in memory and on disk is different. Otherwise no write operation.
+ self.save()
return result