Commit 3bf80401 authored by Joel Collins's avatar Joel Collins
Browse files

Fixed FOV never updating

parent 65adab73
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -96,18 +96,10 @@ export default {
  },

  created: function() {
    // Watch for host 'ready'
    this.$store.watch(
      (state, getters) => {
        return getters.ready;
      },
      () => {
    // Send a request to start/stop GPU preview based on global setting
    this.previewRequest(this.$store.state.globalSettings.autoGpuPreview);
    // Get FOV from settings
    this.updateFov();
      }
    );
  },

  beforeDestroy: function() {
@@ -230,6 +222,7 @@ export default {
    },

    updateFov: function() {
      console.log("Updating FOV");
      // Get the current field-of-view setting from the server
      axios
        .get(`${this.settingsUri}/fov`)