Added track-window settings

This commit is contained in:
Joel Collins 2019-02-25 17:16:06 +00:00
parent e63ab83000
commit ef8a8bfab7

View file

@ -1,9 +1,11 @@
<template>
<div id="appSettings">
<p><label><input v-model="disableStream" class="uk-checkbox" type="checkbox"> Disable stream</label></p>
<div class="uk-child-width-1-2" uk-grid>
<p><label><input v-model="disableStream" class="uk-checkbox" type="checkbox"> Disable stream</label></p>
<p><label class="uk-disabled"><input v-model="autoGpuPreview" class="uk-checkbox" type="checkbox"> GPU preview</label></p>
<p><label><input v-model="autoGpuPreview" class="uk-checkbox" type="checkbox"> GPU preview</label></p>
<p><label><input v-model="trackWindow" class="uk-checkbox" type="checkbox"> Track window</label></p>
</div>
</div>
@ -30,6 +32,18 @@ export default {
},
set(value) {
this.$store.commit("changeSetting", ['autoGpuPreview', value]);
this.$root.$emit('globalTogglePreview', value)
}
},
trackWindow: {
get() {
return this.$store.state.settings.trackWindow;
},
set(value) {
this.$store.commit("changeSetting", ['trackWindow', value]);
if (this.$store.state.settings.autoGpuPreview == true) {
this.$root.$emit('globalTogglePreview', true)
}
}
}
}