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

This commit is contained in:
Ronan Abhamon 2017-06-09 14:03:27 +02:00
parent 1dce1fefd1
commit 397aaf831b

View file

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