Preserve Muninn source selection across discovered ids
This commit is contained in:
parent
a911d22c7c
commit
1e5a62eb77
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue