Hide GPU preview whenever the stream tab is hidden
This commit is contained in:
parent
f6e28520df
commit
481fbbaeff
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue