[Update] Config Page: Add Device tab. add mic host list.(not selectable yet.)
This commit is contained in:
@@ -14,13 +14,19 @@ export const App = () => {
|
||||
const main_page = getCurrent();
|
||||
|
||||
const { currentIsOpenedConfigPage } = useIsOpenedConfigPage();
|
||||
const { getSoftwareVersion } = useConfig();
|
||||
const {
|
||||
getSoftwareVersion,
|
||||
getMicHostList,
|
||||
getSelectedMicHost,
|
||||
} = useConfig();
|
||||
|
||||
useEffect(() => {
|
||||
main_page.setDecorations(true);
|
||||
if (!hasRunRef.current) {
|
||||
asyncStartPython().then((result) => {
|
||||
getSoftwareVersion();
|
||||
getMicHostList();
|
||||
getSelectedMicHost();
|
||||
}).catch((err) => {
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user