vlc | branch: master | Adrien Maglo <[email protected]> | Wed Jun 26 
11:21:38 2019 +0200| [b0e88876356ad3d5f4f138941df6e98ff08a190b] | committer: 
Jean-Baptiste Kempf

QML: display a message when no network shares has been found

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml 
b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
index 15362d7564..1f58c17ef8 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
@@ -111,4 +111,12 @@ Utils.NavigableFocusScope {
         onActionUp: root.actionUp(index)
         onActionCancel: root.actionCancel(index)
     }
+
+    Label {
+        anchors.centerIn: parent
+        visible: delegateModel.items.count === 0
+        font.pixelSize: VLCStyle.fontHeight_xxlarge
+        color: root.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
+        text: qsTr("No network shares found")
+    }
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to