Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
20ed77d8
Commit
20ed77d8
authored
Apr 08, 2021
by
Nate Graham
Browse files
Use ternaries in GridBrowserView instead of nested if/else statements
parent
a775b74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qml/GridBrowserView.qml
View file @
20ed77d8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment