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
99e8f049
Commit
99e8f049
authored
Nov 13, 2020
by
Matthieu Gallien
🎵
Browse files
only show open in file manager button for local URLs
parent
aa916566
Pipeline
#40798
passed with stage
in 24 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/qml/ContextView.qml
View file @
99e8f049
...
...
@@ -330,6 +330,7 @@ FocusScope {
ToolButton
{
icon.name
:
"
document-open-folder
"
text
:
i18n
(
"
Show In Folder
"
)
visible
:
metaDataModel
.
fileUrl
.
toString
().
substring
(
0
,
7
)
===
'
file://
'
onClicked
:
{
ElisaApplication
.
showInFolder
(
metaDataModel
.
fileUrl
)
}
...
...
src/qml/GridBrowserDelegate.qml
View file @
99e8f049
...
...
@@ -144,7 +144,8 @@ FocusScope {
Keys.onReturnPressed
:
clicked
()
Keys.onEnterPressed
:
clicked
()
visible
:
showDetailsButton
visible
:
showDetailsButton
&&
(
trackUrl
.
toString
().
substring
(
0
,
7
)
===
'
file://
'
)
width
:
elisaTheme
.
delegateToolButtonSize
height
:
elisaTheme
.
delegateToolButtonSize
...
...
src/qml/ListBrowserDelegate.qml
View file @
99e8f049
...
...
@@ -241,6 +241,8 @@ FocusScope {
height
:
singleLineHeight
width
:
singleLineHeight
visible
:
trackUrl
.
toString
().
substring
(
0
,
7
)
===
'
file://
'
text
:
i18nc
(
"
Show the file for this song in the file manager
"
,
"
Show in folder
"
)
icon.name
:
"
document-open-folder
"
onClicked
:
{
...
...
src/qml/PlayListEntry.qml
View file @
99e8f049
...
...
@@ -227,6 +227,8 @@ FocusScope {
implicitHeight
:
playListEntry
.
height
implicitWidth
:
playListEntry
.
height
visible
:
playListEntry
.
fileName
.
toString
().
substring
(
0
,
7
)
===
'
file://
'
text
:
i18nc
(
"
Show the file for this song in the file manager
"
,
"
Show in folder
"
)
icon.name
:
"
document-open-folder
"
onClicked
:
{
...
...
Write
Preview
Supports
Markdown
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