qml: main: Don't duplicate (Recommends)

This commit is contained in:
Tom Dewey 2024-07-17 11:05:51 +01:00 committed by Tom Dewey
parent cf8c4bc66d
commit 094142ae8e

View file

@ -1618,7 +1618,11 @@ ApplicationWindow {
if (oslist_parsed.length != 0) {
var candidate = oslist_parsed[0]
if ("description" in candidate && !("subitems" in candidate)) {
if ("description" in candidate &&
!("subitems" in candidate) &&
!candidate["description"].includes("(Recommended)")
)
{
candidate["description"] += " (Recommended)"
}
}