From 1999a0b49ede427279c55b380fb9ed4b8871a2f1 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 15 Jun 2019 18:10:53 +0200 Subject: [PATCH] Allow to share multiple files from plasmoid --- plasmoid/package/contents/ui/DeviceDelegate.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml index 2d0b3e59e..1e7d6595c 100644 --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -97,6 +97,7 @@ PlasmaComponents.ListItem id: fileDialog title: i18n("Please choose a file") folder: shortcuts.home + selectMultiple: true } id: shareFile @@ -105,7 +106,9 @@ PlasmaComponents.ListItem tooltip: i18n("Share file") onClicked: { fileDialog.open() - share.plugin.shareUrl(fileDialog.fileUrl) + fileDialog.fileUrls.forEach(function (url) { + share.plugin.shareUrl(url) + }) } }