diff --git a/gui/src/components/main_startup_check.vue b/gui/src/components/main_startup_check.vue index cf16fcbe..a198d163 100644 --- a/gui/src/components/main_startup_check.vue +++ b/gui/src/components/main_startup_check.vue @@ -8,8 +8,7 @@ import { setActivePinia } from "pinia"; import pinia from "../store/index"; setActivePinia(pinia); -import { settingsStore as settings } from "../store/settingsStore.js"; -import { handleFieldValueChange } from "../js/settingsHandler"; +import { settingsStore as settings, onChange } from "../store/settingsStore.js"; import { useAudioStore } from "../store/audioStore.js"; const audio = useAudioStore(pinia); @@ -43,7 +42,7 @@ function getNetworkState() { } function getRigControlStuff() { - switch (settings.remote.RADIO.radiocontrol) { + switch (settings.remote.RADIO.control) { case "disabled": return true; case "rigctld": @@ -210,7 +209,7 @@ function testHamlib() { aria-label=".form-select-sm" data-section="AUDIO" data-setting="input_device" - @change="handleFieldValueChange" + @change="onChange" v-model="settings.remote.AUDIO.input_device" v-html="audio.getInputDevices()" > @@ -268,7 +267,7 @@ function testHamlib() { id="rigcontrol_radiocontrol" data-section="RADIO" data-setting="control" - @change="handleFieldValueChange" + @change="onChange" v-model="settings.remote.RADIO.control" >