[vlc-commits] qml: disable shuffle button when the list is empty

Fatih Uzunoglu git at videolan.org
Fri Jul 3 14:59:15 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Tue Jun 23 21:55:26 2020 +0300| [1a8854b7606ffc3172be0a930e5b20b52618e57f] | committer: Pierre Lamot

qml: disable shuffle button when the list is empty

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

 modules/gui/qt/playlist/qml/PlaylistToolbar.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
index 403d496d77..c35af67325 100644
--- a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
@@ -62,6 +62,7 @@ Widgets.NavigableFocusScope {
                 id: shuffle
                 Layout.alignment: Qt.AlignHCenter
                 //Layout.minimumWidth: VLCStyle.icon_normal * 2
+                enabled: !mainPlaylistController.empty
                 size: VLCStyle.icon_normal
                 iconText: VLCIcons.shuffle_on
                 onClicked: mainPlaylistController.shuffle()



More information about the vlc-commits mailing list