Commit 5f203eaa authored by Jehan Monnier's avatar Jehan Monnier

-make sure showFullScreen is only call one time.

-call showNormal before existing
parent 4ec63ac0
...@@ -20,10 +20,12 @@ Window { ...@@ -20,10 +20,12 @@ Window {
property var callsWindow property var callsWindow
property bool hideButtons: false property bool hideButtons: false
property bool sFullScreen: true
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
function _exit (cb) { function _exit (cb) {
incall.showNormal()
incall.close() incall.close()
if (cb) { if (cb) {
...@@ -33,7 +35,12 @@ Window { ...@@ -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 { ...@@ -49,7 +56,10 @@ Window {
color: '#000000' // Not a style. color: '#000000' // Not a style.
focus: true focus: true
Keys.onEscapePressed: incall.close() Keys.onEscapePressed: {
incall.showNormal()
incall.close()
}
Loader { Loader {
anchors.fill: parent anchors.fill: parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment