From c812c543f8ab480661bd10b9546515b608b4747f Mon Sep 17 00:00:00 2001 From: hogeheer499-commits Date: Sat, 25 Jul 2026 21:15:27 +0200 Subject: [PATCH] common : skip empty implicit default preset (#25643) The INI parser creates an implicit default section for top-level metadata. After reserved keys such as `version` are skipped, that section can have no model options but was still added and exposed in router mode. Skip only the empty implicit default while preserving real default presets, named presets, and the global `[*]` settings. Signed-off-by: JS van Dijk <267467744+hogeheer499-commits@users.noreply.github.com> Co-authored-by: JS van Dijk <267467744+hogeheer499-commits@users.noreply.github.com> --- common/preset.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/preset.cpp b/common/preset.cpp index 4362c0621..eb0c60b09 100644 --- a/common/preset.cpp +++ b/common/preset.cpp @@ -330,6 +330,10 @@ common_presets common_preset_context::load_from_ini(const std::string & path, co } } + if (preset.name == COMMON_PRESET_DEFAULT_NAME && preset.options.empty()) { + continue; + } + if (preset.name == "*") { // handle global preset global = preset;