[vlc-devel] [PATCH 12/12] qml: fullscreen button should ask videofullscreen
Pierre Lamot
pierre at videolabs.io
Mon May 11 18:05:02 CEST 2020
otherwise the interface stays fullscreen when the video ends
---
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")
}
--
2.25.1
More information about the vlc-devel
mailing list