[vlc-devel] [PATCH 26/49] qml: provide direct access to the indexation functionnality while browsing network
Pierre Lamot
pierre at videolabs.io
Fri Oct 11 15:17:50 CEST 2019
---
modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
index 0ef1f6ba9f..809da086fc 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
@@ -29,6 +29,14 @@ import "qrc:///style/"
Utils.NavigableFocusScope {
id: root
+ property var extraLocalActions: ObjectModel {
+ Utils.TabButtonExt {
+ text: providerModel.indexed ? qsTr("Unindex Folder") : qsTr("Index Folder")
+ visible: !view.isOnProviderList && providerModel.canBeIndexed
+ onClicked: providerModel.indexed = !providerModel.indexed
+ }
+ }
+
property alias tree: providerModel.tree
Utils.MenuExt {
id: contextMenu
@@ -67,7 +75,7 @@ Utils.NavigableFocusScope {
action: "enqueue"
}, {
active: contextMenu.model && !!contextMenu.model.can_index,
- text: contextMenu.model && contextMenu.model.indexed ? qsTr("Unindex") : qsTr("Index"),
+ text: contextMenu.model && contextMenu.model.indexed ? qsTr("Add to Media Library") : qsTr("Remove to Media Library"),
action: "index"
}
]
--
2.20.1
More information about the vlc-devel
mailing list