[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();
|
||||
|
||||
@@ -85,7 +85,7 @@ const Mic_Container = () => {
|
||||
selected_id={currentSelectedMicHost.data}
|
||||
list={currentMicHostList.data}
|
||||
selectFunction={selectFunction_host}
|
||||
openListFunction={getMicHostList}
|
||||
// openListFunction={getMicHostList}
|
||||
state={currentSelectedMicHost.state}
|
||||
style={{ maxWidth: "20rem", minWidth: "10rem" }}
|
||||
is_disabled={is_disabled_selector}
|
||||
@@ -99,7 +99,7 @@ const Mic_Container = () => {
|
||||
selected_id={currentSelectedMicDevice.data}
|
||||
list={currentMicDeviceList.data}
|
||||
selectFunction={selectFunction_device}
|
||||
openListFunction={getMicDeviceList}
|
||||
// openListFunction={getMicDeviceList}
|
||||
state={currentSelectedMicDevice.state}
|
||||
is_disabled={is_disabled_selector}
|
||||
/>
|
||||
@@ -183,7 +183,7 @@ const Speaker_Container = () => {
|
||||
selected_id={currentSelectedSpeakerDevice.data}
|
||||
list={currentSpeakerDeviceList.data}
|
||||
selectFunction={selectFunction}
|
||||
openListFunction={getSpeakerDeviceList}
|
||||
// openListFunction={getSpeakerDeviceList}
|
||||
state={currentSelectedSpeakerDevice.state}
|
||||
is_disabled={is_disabled_selector}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user