Fixed FOV never updating

This commit is contained in:
Joel Collins 2019-11-27 14:47:55 +00:00
parent 65adab73ee
commit 3bf804011b

View file

@ -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();
}
);
// 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`)