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() { 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 // Send a request to start/stop GPU preview based on global setting
this.previewRequest(this.$store.state.globalSettings.autoGpuPreview); this.previewRequest(this.$store.state.globalSettings.autoGpuPreview);
// Get FOV from settings // Get FOV from settings
this.updateFov(); this.updateFov();
}
);
}, },
beforeDestroy: function() { beforeDestroy: function() {
@ -230,6 +222,7 @@ export default {
}, },
updateFov: function() { updateFov: function() {
console.log("Updating FOV");
// Get the current field-of-view setting from the server // Get the current field-of-view setting from the server
axios axios
.get(`${this.settingsUri}/fov`) .get(`${this.settingsUri}/fov`)