[bugfix/Update] Config Page: Device Tab. Mic/Speaker auto select section. Fetch initial data.

This commit is contained in:
Sakamoto Shiina
2024-09-16 04:06:34 +09:00
parent a439f7e3da
commit 0e623b73fd
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ export const App = () => {
import { useSoftwareVersion } from "@logics_configs/useSoftwareVersion"; import { useSoftwareVersion } from "@logics_configs/useSoftwareVersion";
import { useEnableAutoMicSelect } from "@logics_configs/useEnableAutoMicSelect";
import { useEnableAutoSpeakerSelect } from "@logics_configs/useEnableAutoSpeakerSelect";
import { useSelectedMicHost } from "@logics_configs/useSelectedMicHost"; import { useSelectedMicHost } from "@logics_configs/useSelectedMicHost";
import { useSelectedMicDevice } from "@logics_configs/useSelectedMicDevice"; import { useSelectedMicDevice } from "@logics_configs/useSelectedMicDevice";
import { useSelectedSpeakerDevice } from "@logics_configs/useSelectedSpeakerDevice"; import { useSelectedSpeakerDevice } from "@logics_configs/useSelectedSpeakerDevice";
@@ -37,6 +39,8 @@ const StartPythonFacadeComponent = () => {
const main_page = getCurrent(); const main_page = getCurrent();
const { getSoftwareVersion } = useSoftwareVersion(); const { getSoftwareVersion } = useSoftwareVersion();
const { getEnableAutoMicSelect } = useEnableAutoMicSelect();
const { getEnableAutoSpeakerSelect } = useEnableAutoSpeakerSelect();
const { getSelectedMicHost } = useSelectedMicHost(); const { getSelectedMicHost } = useSelectedMicHost();
const { getSelectedMicDevice } = useSelectedMicDevice(); const { getSelectedMicDevice } = useSelectedMicDevice();
const { getSelectedSpeakerDevice } = useSelectedSpeakerDevice(); const { getSelectedSpeakerDevice } = useSelectedSpeakerDevice();
@@ -59,6 +63,8 @@ const StartPythonFacadeComponent = () => {
getSelectableLanguageList(); getSelectableLanguageList();
getEnableAutoMicSelect();
getEnableAutoSpeakerSelect();
getSelectedMicHost(); getSelectedMicHost();
getSelectedMicDevice(); getSelectedMicDevice();
getSelectedSpeakerDevice(); getSelectedSpeakerDevice();

View File

@@ -76,8 +76,10 @@ export const useReceiveRoutes = () => {
"/config/version": updateSoftwareVersion, "/config/version": updateSoftwareVersion,
"/config/enable_mic_automatic_selection": updateEnableAutoMicSelect,
"/controller/callback_enable_mic_automatic_selection": updateEnableAutoMicSelect, "/controller/callback_enable_mic_automatic_selection": updateEnableAutoMicSelect,
"/controller/callback_disable_mic_automatic_selection": updateEnableAutoMicSelect, "/controller/callback_disable_mic_automatic_selection": updateEnableAutoMicSelect,
"/config/enable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,
"/controller/callback_enable_speaker_automatic_selection": updateEnableAutoSpeakerSelect, "/controller/callback_enable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,
"/controller/callback_disable_speaker_automatic_selection": updateEnableAutoSpeakerSelect, "/controller/callback_disable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,