Commit ef8a8bfa authored by Joel Collins's avatar Joel Collins
Browse files

Added track-window settings

parent e63ab830
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
<template>
<div id="appSettings">

  <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>

  <div class="uk-child-width-1-2" uk-grid>
    <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)
        }
      }
    }
  }