Skip to content

Commit 4761dd7

Browse files
committed
PageDebugVeQItems: simplify item text binding
1 parent 0fc1914 commit 4761dd7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pages/settings/debug/PageDebugVeQItems.qml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ Page {
2424

2525
delegate: ListNavigation {
2626
text: model.id
27-
secondaryText: {
28-
if (interactive) {
29-
return ""
30-
}
31-
return model.value !== undefined ? model.value : "--"
32-
}
33-
27+
secondaryText: interactive ? "" : (model.value ?? "--")
3428
interactive: subModel.rowCount > 0
3529

3630
onClicked: {

0 commit comments

Comments
 (0)