[Update] Remove the get devices lists function that is working when dropdown menu opens and move to init place(app.jsx).
This commit is contained in:
@@ -36,11 +36,19 @@ import { useLanguageSettings } from "@logics_main/useLanguageSettings";
|
||||
import { useSelectableLanguageList } from "@logics_main/useSelectableLanguageList";
|
||||
import { useMessageInputBoxRatio } from "@logics_main/useMessageInputBoxRatio";
|
||||
|
||||
import { useMicHostList } from "@logics_configs/useMicHostList";
|
||||
import { useMicDeviceList } from "@logics_configs/useMicDeviceList";
|
||||
import { useSpeakerDeviceList } from "@logics_configs/useSpeakerDeviceList";
|
||||
|
||||
const StartPythonFacadeComponent = () => {
|
||||
const { asyncStartPython } = useStartPython();
|
||||
const hasRunRef = useRef(false);
|
||||
const main_page = getCurrent();
|
||||
|
||||
const { getMicHostList } = useMicHostList();
|
||||
const { getMicDeviceList } = useMicDeviceList();
|
||||
const { getSpeakerDeviceList } = useSpeakerDeviceList();
|
||||
|
||||
const { getIsMainPageCompactMode } = useIsMainPageCompactMode();
|
||||
const { getSoftwareVersion } = useSoftwareVersion();
|
||||
const { getEnableAutoMicSelect } = useEnableAutoMicSelect();
|
||||
@@ -84,6 +92,10 @@ const StartPythonFacadeComponent = () => {
|
||||
getTranslationEngines();
|
||||
getSelectedTranslationEngines();
|
||||
|
||||
getMicHostList();
|
||||
getMicDeviceList();
|
||||
getSpeakerDeviceList();
|
||||
|
||||
getEnableAutoMicSelect();
|
||||
getEnableAutoSpeakerSelect();
|
||||
getSelectedMicHost();
|
||||
|
||||
Reference in New Issue
Block a user