diff --git a/src/common/config.cpp b/src/common/config.cpp index c1c5e4ea4..3c8188734 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -677,6 +677,9 @@ void load(const std::filesystem::path& path) { const toml::value& keys = data.at("Keys"); trophyKey = toml::find_or(keys, "TrophyKey", trophyKey); } + + // Run save after loading to generate any missing fields with default values. + save(path); } void sortTomlSections(toml::ordered_value& data) {