Commit 20ed77d8 authored by Nate Graham's avatar Nate Graham
Browse files

Use ternaries in GridBrowserView instead of nested if/else statements

parent a775b74e
...@@ -137,8 +137,8 @@ FocusScope { ...@@ -137,8 +137,8 @@ FocusScope {
isPartial: false isPartial: false
mainText: model.display mainText: model.display
fileUrl: if (model.url) { model.url } else { '' } fileUrl: model.url ? model.url : ""
secondaryText: if (gridView.delegateDisplaySecondaryText) {model.secondaryText} else {""} secondaryText: gridView.delegateDisplaySecondaryText ? model.secondaryText : ""
imageUrl: model.imageUrl ? model.imageUrl : '' imageUrl: model.imageUrl ? model.imageUrl : ''
imageFallbackUrl: defaultIcon imageFallbackUrl: defaultIcon
databaseId: model.databaseId databaseId: model.databaseId
......
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