From 3bf804011bab07187e5eb583b6d440a4c1084205 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 27 Nov 2019 14:47:55 +0000 Subject: [PATCH] Fixed FOV never updating --- src/components/viewComponents/streamDisplay.vue | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/components/viewComponents/streamDisplay.vue b/src/components/viewComponents/streamDisplay.vue index 5d5bd9e6..0070c92a 100644 --- a/src/components/viewComponents/streamDisplay.vue +++ b/src/components/viewComponents/streamDisplay.vue @@ -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`)