mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
feat(ui/views/App/Calls/Incall): hide fullscreen window when call is ended
This commit is contained in:
parent
bd4b18d272
commit
d59f1ddde1
2 changed files with 11 additions and 1 deletions
|
|
@ -16,6 +16,15 @@ function computeAvatarSize (maxSize) {
|
|||
return size < width ? size : width
|
||||
}
|
||||
|
||||
function handleStatusChanged (status) {
|
||||
if (status === Linphone.CallModel.CallStatusEnded) {
|
||||
var fullscreen = incall._fullscreen
|
||||
if (fullscreen) {
|
||||
fullscreen.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleVideoRequested () {
|
||||
var call = incall.call
|
||||
var dialog
|
||||
|
|
@ -58,7 +67,7 @@ function handleVideoRequested () {
|
|||
})
|
||||
}
|
||||
|
||||
function showFullScreen () {
|
||||
function showFullscreen () {
|
||||
if (incall._fullscreen) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ Rectangle {
|
|||
Connections {
|
||||
target: call
|
||||
|
||||
onStatusChanged: Logic.handleStatusChanged (status)
|
||||
onVideoRequested: Logic.handleVideoRequested()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue