diff --git a/linien-gui/linien_gui/config.py b/linien-gui/linien_gui/config.py index 69224c29..dff932cc 100644 --- a/linien-gui/linien_gui/config.py +++ b/linien-gui/linien_gui/config.py @@ -113,6 +113,7 @@ def __iter__(self) -> Iterator[Tuple[str, Setting]]: def save_settings(settings: Settings) -> None: data = {name: setting.value for name, setting in settings} + USER_DATA_PATH.mkdir(parents=True, exist_ok=True) with open(USER_DATA_PATH / "settings.json", "w") as f: json.dump(data, f, indent=0)