summary refs log tree commit diff
path: root/resources/qml/ActiveCallBar.qml
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-11-25 21:59:23 +0100
committerGitHub <noreply@github.com>2020-11-25 21:59:23 +0100
commit54d75466c71f339893dbec44793531b001cf9b87 (patch)
tree1ab1ed3fa72dea0b2ab8ed861a0d0fe685864c1c /resources/qml/ActiveCallBar.qml
parentMerge pull request #337 from trilene/master (diff)
parentOpen completer on tab (diff)
downloadnheko-54d75466c71f339893dbec44793531b001cf9b87.tar.xz
Merge pull request #335 from Nheko-Reborn/qml-text-input
Qml text input
Diffstat (limited to 'resources/qml/ActiveCallBar.qml')
-rw-r--r--resources/qml/ActiveCallBar.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/resources/qml/ActiveCallBar.qml b/resources/qml/ActiveCallBar.qml

index 282cac81..49c0e255 100644 --- a/resources/qml/ActiveCallBar.qml +++ b/resources/qml/ActiveCallBar.qml
@@ -12,8 +12,11 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: if (TimelineManager.onVideoCall) - stackLayout.currentIndex = stackLayout.currentIndex ? 0 : 1; + onClicked: { + if (TimelineManager.onVideoCall) + stackLayout.currentIndex = stackLayout.currentIndex ? 0 : 1; + + } } RowLayout { @@ -39,8 +42,7 @@ Rectangle { Image { Layout.preferredWidth: 24 Layout.preferredHeight: 24 - source: TimelineManager.onVideoCall ? - "qrc:/icons/icons/ui/video-call.png" : "qrc:/icons/icons/ui/place-call.png" + source: TimelineManager.onVideoCall ? "qrc:/icons/icons/ui/video-call.png" : "qrc:/icons/icons/ui/place-call.png" } Label { @@ -51,7 +53,6 @@ Rectangle { Connections { target: TimelineManager - onCallStateChanged: { switch (state) { case WebRTCState.INITIATING: @@ -69,6 +70,7 @@ Rectangle { callTimer.startTime = Math.floor(d.getTime() / 1000); if (TimelineManager.onVideoCall) stackLayout.currentIndex = 1; + break; case WebRTCState.DISCONNECTED: callStateLabel.text = "";