From 094142ae8e7d8486611b8a07cb930a30a1bfe805 Mon Sep 17 00:00:00 2001 From: Tom Dewey Date: Wed, 17 Jul 2024 11:05:51 +0100 Subject: [PATCH] qml: main: Don't duplicate (Recommends) --- src/main.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.qml b/src/main.qml index 5dc6e18..6e7868a 100644 --- a/src/main.qml +++ b/src/main.qml @@ -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)" } }