[vlc-commits] qml: fullscreen button should ask videofullscreen

Pierre Lamot git at videolan.org
Tue May 19 16:52:54 CEST 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue May  5 15:21:12 2020 +0200| [800b600f150b35084286709acfce0ea1c6e2e9ae] | committer: Pierre Lamot

qml: fullscreen button should ask videofullscreen

otherwise the interface stays fullscreen when the video ends

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

 modules/gui/qt/player/qml/ControlButtons.qml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 5f10ed0e4f..2312548dfb 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -417,8 +417,9 @@ Item{
         Widgets.IconToolButton{
             id: fullScreenBtn
             size: VLCStyle.icon_medium
-            iconText: mainInterface.interfaceFullScreen ?VLCIcons.defullscreen :VLCIcons.fullscreen
-            onClicked: mainInterface.interfaceFullScreen = !mainInterface.interfaceFullScreen
+            enabled: !paintOnly && player.hasVideoOutput
+            iconText: player.fullscreen ? VLCIcons.defullscreen :VLCIcons.fullscreen
+            onClicked: player.fullscreen = !player.fullscreen
             property bool acceptFocus: true
             text: i18n.qtr("fullscreen")
         }



More information about the vlc-commits mailing list