Hide GPU preview whenever the stream tab is hidden

This commit is contained in:
Joel Collins 2019-09-25 13:51:02 +01:00
parent f6e28520df
commit 481fbbaeff

View file

@ -39,8 +39,8 @@ export default {
// Attach methods to UIkit events for tab switching
var context = this;
// Gallery tab
UIkit.util.on('#galleryDisplayTab', 'shown', function(event, area) {
console.log("Gallery tab entered")
UIkit.util.on('#streamDisplayTab', 'hidden', function(event, area) {
console.log("Stream tab hidden")
if (context.$store.state.globalSettings.trackWindow == true) {
context.$root.$emit('globalTogglePreview', false)
}