From 731d2a515f677ebdf2f6694bbae1e8a07d0f058c Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Mon, 15 Aug 2022 12:55:27 -0400 Subject: [PATCH] callview: avoid resetting the CallOverlayModel multiple times This is a temporary fix that can be replaced by more declarative code in the future. Change-Id: I22ffc2b0bc844bc0a17fefdedab63b26b477179a --- src/app/mainview/components/CallActionBar.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/mainview/components/CallActionBar.qml b/src/app/mainview/components/CallActionBar.qml index 51530fb5..fff50888 100644 --- a/src/app/mainview/components/CallActionBar.qml +++ b/src/app/mainview/components/CallActionBar.qml @@ -412,14 +412,14 @@ Control { Connections { target: callOverlay - function onIsAudioOnlyChanged() { reset() } - function onIsSIPChanged() { reset() } - function onIsModeratorChanged() { reset() } - function onIsAudioMutedChanged() { reset() } - function onIsVideoMutedChanged() { reset() } - function onIsRecordingChanged() { reset() } - function onLocalHandRaisedChanged() { reset() } - function onIsConferenceChanged() { reset() } + function onIsAudioOnlyChanged() { Qt.callLater(reset) } + function onIsSIPChanged() { Qt.callLater(reset) } + function onIsModeratorChanged() { Qt.callLater(reset) } + function onIsAudioMutedChanged() { Qt.callLater(reset) } + function onIsVideoMutedChanged() { Qt.callLater(reset) } + function onIsRecordingChanged() { Qt.callLater(reset) } + function onLocalHandRaisedChanged() { Qt.callLater(reset) } + function onIsConferenceChanged() { Qt.callLater(reset) } } Connections { target: CurrentAccount