Fixed FOV never updating
This commit is contained in:
parent
65adab73ee
commit
3bf804011b
1 changed files with 5 additions and 12 deletions
|
|
@ -96,18 +96,10 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
created: function() {
|
created: function() {
|
||||||
// Watch for host 'ready'
|
// Send a request to start/stop GPU preview based on global setting
|
||||||
this.$store.watch(
|
this.previewRequest(this.$store.state.globalSettings.autoGpuPreview);
|
||||||
(state, getters) => {
|
// Get FOV from settings
|
||||||
return getters.ready;
|
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() {
|
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`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue