Added mounted method for re-enabling GPU preview
This commit is contained in:
parent
2a5bcd686a
commit
2503667162
1 changed files with 8 additions and 0 deletions
|
|
@ -37,8 +37,16 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
// A global signal listener to change the GPU preview state
|
// A global signal listener to change the GPU preview state
|
||||||
this.$root.$on('globalTogglePreview', (state) => {
|
this.$root.$on('globalTogglePreview', (state) => {
|
||||||
|
console.log(`Toggling preview to ${state}`)
|
||||||
this.previewRequest(state)
|
this.previewRequest(state)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.$root.$on('globalReenablePreview', () => {
|
||||||
|
if (this.$store.state.settings.autoGpuPreview) {
|
||||||
|
console.log("Re-enabling preview")
|
||||||
|
this.previewRequest(true)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
created: function () {
|
created: function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue