[vlc-devel] [PATCH 11/23] qml: disable clear button when the list is empty

Fatih Uzunoglu fuzun54 at outlook.com
Thu Jul 2 15:21:56 CEST 2020


---
 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 1da3002458..403d496d77 100644
--- a/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistToolbar.qml
@@ -102,6 +102,7 @@ Widgets.NavigableFocusScope {
                 Layout.alignment: Qt.AlignHCenter
                 //Layout.minimumWidth: VLCStyle.icon_normal * 2
                 size: VLCStyle.icon_normal
+                enabled: !mainPlaylistController.empty
                 iconText: VLCIcons.playlist_clear
                 onClicked: mainPlaylistController.clear()
                 focusPolicy: Qt.NoFocus
-- 
2.25.1



More information about the vlc-devel mailing list