Added track-window settings
This commit is contained in:
parent
e63ab83000
commit
ef8a8bfab7
1 changed files with 16 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue