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 {
isPartial: false
mainText: model.display
fileUrl: if (model.url) { model.url } else { '' }
secondaryText: if (gridView.delegateDisplaySecondaryText) {model.secondaryText} else {""}
fileUrl: model.url ? model.url : ""
secondaryText: gridView.delegateDisplaySecondaryText ? model.secondaryText : ""
imageUrl: model.imageUrl ? model.imageUrl : ''
imageFallbackUrl: defaultIcon
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