Skip to content

Commit

Permalink
Fix capabilities for subitems
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Sep 25, 2024
1 parent ede04fb commit 879e874
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ ApplicationWindow {
icon: ""
description: ""
matching_type: "exclusive"
supported_features: "[]"
capabilities: "[]"
}
}
currentIndex: -1
Expand Down Expand Up @@ -653,6 +653,7 @@ ApplicationWindow {
tooltip: ""
website: ""
init_format: ""
capabilities: "[]"
}
}

Expand Down Expand Up @@ -1489,7 +1490,8 @@ ApplicationWindow {
if ("subitems" in entry) {
entry["subitems_json"] = JSON.stringify(entry["subitems"])
delete entry["subitems"]
} else if ("capabilities" in entry) {
}
if ("capabilities" in entry) {
entry["capabilities"] = JSON.stringify(entry["capabilities"])
}
}
Expand Down Expand Up @@ -1695,6 +1697,10 @@ ApplicationWindow {
entry["subitems_json"] = JSON.stringify(entry["subitems"])
delete entry["subitems"]
}
if ("capabilities" in entry) {
entry["capabilities"] = JSON.stringify(entry["capabilities"])
}

m.append(entry)
}

Expand Down

0 comments on commit 879e874

Please sign in to comment.