From 54a152ddadd9ddc98440748489b94841dce815d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 17 Jan 2022 20:02:01 +0100 Subject: [PATCH] fix hideControls muting sound, #131. --- client/src/app.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/app.vue b/client/src/app.vue index c2556ef..ca3b60d 100644 --- a/client/src/app.vue +++ b/client/src/app.vue @@ -181,9 +181,11 @@ } @Watch('hideControls', { immediate: true }) - onHideControls() { - this.$accessor.video.setMuted(false) - this.$accessor.settings.setSound(false) + onHideControls(enabled: boolean) { + if (enabled) { + this.$accessor.video.setMuted(false) + this.$accessor.settings.setSound(false) + } } controlAttempt() {