Preserve Muninn source selection across discovered ids

This commit is contained in:
Meta Vens 2026-06-19 22:22:47 +01:00
commit 1e5a62eb77

View file

@ -2469,6 +2469,11 @@ static std::string selected_source_id(
return current;
}
}
for (const auto &source : sources) {
if (source.first.rfind(current, 0) == 0) {
return source.first;
}
}
}
return sources.empty() ? std::string{} : sources.front().first;
}