Commit 70631b9d authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent d58501cf
...@@ -19,3 +19,7 @@ function updateVideoPreview () { ...@@ -19,3 +19,7 @@ function updateVideoPreview () {
window.detachVirtualWindow() window.detachVirtualWindow()
} }
} }
function hideVideoPreview () {
window.detachVirtualWindow()
}
...@@ -123,6 +123,12 @@ TabContainer { ...@@ -123,6 +123,12 @@ TabContainer {
onRowsInserted: Logic.updateVideoPreview() onRowsInserted: Logic.updateVideoPreview()
onRowsRemoved: Logic.updateVideoPreview() onRowsRemoved: Logic.updateVideoPreview()
} }
Connections {
target: window
onClosing: Logic.hideVideoPreview()
}
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
......
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