From 7263204616f8290aa80a3c2f3afde4b17281f86c Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 18 Dec 2021 11:47:55 +0100 Subject: [PATCH] Fix recursive property set --- ScreenPlay/qml/Navigation/Navigation.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ScreenPlay/qml/Navigation/Navigation.qml b/ScreenPlay/qml/Navigation/Navigation.qml index dc327eb0..208ab735 100644 --- a/ScreenPlay/qml/Navigation/Navigation.qml +++ b/ScreenPlay/qml/Navigation/Navigation.qml @@ -175,12 +175,10 @@ Rectangle { property bool isMuted: false onIsMutedChanged: { if (miMuteAll.isMuted) { - isMuted = false miMuteAll.icon.source = "qrc:/assets/icons/icon_volume.svg" ScreenPlay.screenPlayManager.setAllWallpaperValue("muted", "false") } else { - isMuted = true miMuteAll.icon.source = "qrc:/assets/icons/icon_volume_mute.svg" ScreenPlay.screenPlayManager.setAllWallpaperValue("muted", "true") @@ -198,22 +196,19 @@ Rectangle { icon.source: "qrc:/assets/icons/icon_pause.svg" icon.width: root.iconWidth icon.height: root.iconHeight - - property bool isPlaying: false + onClicked: isPlaying = !isPlaying + property bool isPlaying: true onIsPlayingChanged:{ if (miStopAll.isPlaying) { - isPlaying = false miStopAll.icon.source = "qrc:/assets/icons/icon_pause.svg" ScreenPlay.screenPlayManager.setAllWallpaperValue( "isPlaying", "true") } else { - isPlaying = true miStopAll.icon.source = "qrc:/assets/icons/icon_play.svg" ScreenPlay.screenPlayManager.setAllWallpaperValue( "isPlaying", "false") } } - onClicked: isPlaying = !isPlaying hoverEnabled: true ToolTip.text: qsTr("Pause/Play all Wallpaper") ToolTip.visible: hovered