Commit 99e8f049 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

only show open in file manager button for local URLs

parent aa916566
Pipeline #40798 passed with stage
in 24 seconds
......@@ -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)
}
......
......@@ -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
......
......@@ -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: {
......
......@@ -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: {
......
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