mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
bugfix: update onnx export status
This commit is contained in:
parent
f1b700ea5d
commit
58b3aaa5fe
@ -7,15 +7,16 @@ export type OnnxExportRowProps = {
|
|||||||
|
|
||||||
export const OnnxExportRow = (_props: OnnxExportRowProps) => {
|
export const OnnxExportRow = (_props: OnnxExportRowProps) => {
|
||||||
const appState = useAppState()
|
const appState = useAppState()
|
||||||
|
const guiState = useGuiState()
|
||||||
|
|
||||||
const onnxExportRow = useMemo(() => {
|
const onnxExportRow = useMemo(() => {
|
||||||
const guiState = useGuiState()
|
|
||||||
|
|
||||||
const onnxExportButtonClassName = "body-button"
|
const onnxExportButtonClassName = "body-button"
|
||||||
const onnxExportButtonAction = async () => {
|
const onnxExportButtonAction = async () => {
|
||||||
|
|
||||||
if (guiState.isConverting) {
|
if (guiState.isConverting) {
|
||||||
alert("cannot export onnx when voice conversion is enabled")
|
alert("cannot export onnx when voice conversion is enabled")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
document.getElementById("dialog")?.classList.add("dialog-container-show")
|
document.getElementById("dialog")?.classList.add("dialog-container-show")
|
||||||
guiState.stateControls.showWaitingCheckbox.updateState(true)
|
guiState.stateControls.showWaitingCheckbox.updateState(true)
|
||||||
@ -44,7 +45,7 @@ export const OnnxExportRow = (_props: OnnxExportRowProps) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}, [appState.serverSetting.serverSetting, appState.serverSetting.updateServerSettings])
|
}, [appState.serverSetting.serverSetting, appState.serverSetting.updateServerSettings, guiState.isConverting])
|
||||||
|
|
||||||
return onnxExportRow
|
return onnxExportRow
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user