[vlc-commits] qml: implement 'Save' playlist context menu button

Fatih Uzunoglu git at videolan.org
Tue Aug 18 17:15:12 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul 30 20:42:42 2020 +0300| [eb8e3917c39af6127ee27f7c73b08e8c66e44499] | committer: Pierre Lamot

qml: implement 'Save' playlist context menu button

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb8e3917c39af6127ee27f7c73b08e8c66e44499
---

 modules/gui/qt/playlist/qml/PlaylistListView.qml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 736e2ffeba..7d507680da 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -161,6 +161,17 @@ Widgets.NavigableFocusScope {
                 }
             }
 
+            Widgets.MenuItemExt {
+                text: i18n.qtr("Save")
+                onTriggered: {
+                    var selection = contextMenu.model.getSelection()
+                    if (selection.length === 0)
+                        return
+
+                    dialogProvider.streamingDialog(selection.map(function(i) { return contextMenu.model.itemAt(i).url; }))
+                }
+            }
+
             Widgets.MenuItemExt {
                 text: i18n.qtr("Information...")
                 icon.source: "qrc:/menu/info.svg"



More information about the vlc-commits mailing list