Commit 397aaf83 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/IncallFullscreenWindow): provide a better transition in opening

parent 1dce1fef
...@@ -26,6 +26,7 @@ Window { ...@@ -26,6 +26,7 @@ Window {
function exit (cb) { function exit (cb) {
// It's necessary to call `showNormal` before close on MacOs // It's necessary to call `showNormal` before close on MacOs
// because the dock will be hidden forever! // because the dock will be hidden forever!
incall.visible = false
incall.showNormal() incall.showNormal()
incall.close() incall.close()
...@@ -40,6 +41,7 @@ Window { ...@@ -40,6 +41,7 @@ Window {
var show = function (visibility) { var show = function (visibility) {
if (visibility === Window.Windowed) { if (visibility === Window.Windowed) {
incall.visibilityChanged.disconnect(show) incall.visibilityChanged.disconnect(show)
incall.visible = true
incall.showFullScreen() incall.showFullScreen()
} }
} }
...@@ -47,6 +49,8 @@ Window { ...@@ -47,6 +49,8 @@ Window {
incall.visibilityChanged.connect(show) incall.visibilityChanged.connect(show)
} }
visible: false
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
Shortcut { Shortcut {
......
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