feat(ui/views/App/Settings/SettingsVideo): hide video preview when window is closed

This commit is contained in:
Ronan Abhamon 2017-04-20 16:04:36 +02:00
parent d58501cf34
commit 70631b9d3f
2 changed files with 10 additions and 0 deletions

View file

@ -19,3 +19,7 @@ function updateVideoPreview () {
window.detachVirtualWindow()
}
}
function hideVideoPreview () {
window.detachVirtualWindow()
}

View file

@ -123,6 +123,12 @@ TabContainer {
onRowsInserted: Logic.updateVideoPreview()
onRowsRemoved: Logic.updateVideoPreview()
}
Connections {
target: window
onClosing: Logic.hideVideoPreview()
}
}
// -------------------------------------------------------------------------