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() + } } // -------------------------------------------------------------------------