[vlc-devel] [PATCH 23/27] qml: disable prev/next buttons if there is no prev/next item
Fatih Uzunoglu
fuzun54 at outlook.com
Fri Dec 4 00:01:58 CET 2020
---
modules/gui/qt/player/qml/ControlButtons.qml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 2fb56926ea..5a11d22940 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -138,6 +138,7 @@ Item{
id: prevBtn
size: VLCStyle.icon_medium
iconText: VLCIcons.previous
+ enabled: mainPlaylistController.hasPrev
onClicked: mainPlaylistController.prev()
property bool acceptFocus: true
text: i18n.qtr("Previous")
@@ -354,6 +355,7 @@ Item{
id: nextBtn
size: VLCStyle.icon_medium
iconText: VLCIcons.next
+ enabled: mainPlaylistController.hasNext
onClicked: mainPlaylistController.next()
property bool acceptFocus: true
text: i18n.qtr("Next")
--
2.27.0
More information about the vlc-devel
mailing list