From 70631b9d3f7b525272862e23830848f42092f3f2 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 20 Apr 2017 16:04:36 +0200 Subject: [PATCH] feat(ui/views/App/Settings/SettingsVideo): hide video preview when window is closed --- linphone-desktop/ui/views/App/Settings/SettingsVideo.js | 4 ++++ linphone-desktop/ui/views/App/Settings/SettingsVideo.qml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/linphone-desktop/ui/views/App/Settings/SettingsVideo.js b/linphone-desktop/ui/views/App/Settings/SettingsVideo.js index 5bfca55ea..0de3a5242 100644 --- a/linphone-desktop/ui/views/App/Settings/SettingsVideo.js +++ b/linphone-desktop/ui/views/App/Settings/SettingsVideo.js @@ -19,3 +19,7 @@ function updateVideoPreview () { window.detachVirtualWindow() } } + +function hideVideoPreview () { + window.detachVirtualWindow() +} diff --git a/linphone-desktop/ui/views/App/Settings/SettingsVideo.qml b/linphone-desktop/ui/views/App/Settings/SettingsVideo.qml index ce636799b..e99c05efa 100644 --- a/linphone-desktop/ui/views/App/Settings/SettingsVideo.qml +++ b/linphone-desktop/ui/views/App/Settings/SettingsVideo.qml @@ -123,6 +123,12 @@ TabContainer { onRowsInserted: Logic.updateVideoPreview() onRowsRemoved: Logic.updateVideoPreview() } + + Connections { + target: window + + onClosing: Logic.hideVideoPreview() + } } // -------------------------------------------------------------------------