Commit 7967ed63 authored by David Redondo's avatar David Redondo 🏎 Committed by Nate Graham
Browse files

Don't show an arrow when the category only contains one item


(cherry picked from commit 9eb9aa44)
parent 5b4df515
......@@ -182,7 +182,13 @@ Kirigami.ScrollablePage {
Keys.onEnterPressed: clicked();
Keys.onReturnPressed: clicked();
contentItem: CategoryItem {
showArrow: model.IsCategoryRole
showArrow: {
if (!model.IsCategoryRole) {
return false;
const modelIndex = delegate.ListView.view.model.index(index, 0)
return delegate.ListView.view.model.rowCount(modelIndex) > 1
selected: delegate.highlighted || delegate.pressed
// Only indent subcategory icons in the search view
isSearching: searchField.text.length > 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment