mirror of
https://github.com/ilyhalight/voice-over-translation.git
synced 2026-10-13 13:10:02 +00:00
fix: clear translation button error without aborting
This commit is contained in:
parent
ea27c22812
commit
9028c00a17
1 changed files with 2 additions and 2 deletions
|
|
@ -69,10 +69,10 @@ export async function handleTranslationButtonCommand(
|
|||
return;
|
||||
}
|
||||
|
||||
// A click on an errored, idle button only clears the error and stops translation.
|
||||
// Starting a new translation must be a separate, deliberate click.
|
||||
// A click on an errored, idle button only clears the error.
|
||||
if (deps.currentStatus === "error" && !deps.currentLoading) {
|
||||
deps.transformBtn("none", t("translateVideo"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (deps.currentStatus !== "none" || deps.currentLoading) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue