[vlc-devel] [PATCH 17/19] qml: implement 'Save' playlist context menu button
Fatih Uzunoglu
fuzun54 at outlook.com
Wed Aug 12 23:17:24 CEST 2020
---
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"
--
2.25.1
More information about the vlc-devel
mailing list