mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 15:18:07 +00:00
-make sure showFullScreen is only call one time.
-call showNormal before existing
This commit is contained in:
parent
4ec63ac07b
commit
5f203eaac4
1 changed files with 12 additions and 2 deletions
|
|
@ -20,10 +20,12 @@ Window {
|
|||
property var callsWindow
|
||||
|
||||
property bool hideButtons: false
|
||||
property bool sFullScreen: true
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function _exit (cb) {
|
||||
incall.showNormal()
|
||||
incall.close()
|
||||
|
||||
if (cb) {
|
||||
|
|
@ -33,7 +35,12 @@ Window {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
onVisibilityChanged: visibility === Window.Windowed && showFullScreen()
|
||||
onVisibilityChanged: {
|
||||
if (sFullScreen && visibility === Window.Windowed) {
|
||||
incall.showFullScreen()
|
||||
sFullScreen = false
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -49,7 +56,10 @@ Window {
|
|||
color: '#000000' // Not a style.
|
||||
focus: true
|
||||
|
||||
Keys.onEscapePressed: incall.close()
|
||||
Keys.onEscapePressed: {
|
||||
incall.showNormal()
|
||||
incall.close()
|
||||
}
|
||||
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue