Fix stop generation button

This commit is contained in:
dwrz
2026-07-06 16:06:48 +00:00
parent 23e29e2d97
commit cc0d1d9892

View File

@@ -1031,6 +1031,14 @@ class Odidere {
this.isStopPending = false; this.isStopPending = false;
this.$send.classList.remove('pending'); this.$send.classList.remove('pending');
} }
// While loading, the send button acts as the stop control and must stay
// clickable regardless of the normal enable/disable logic. When loading
// ends, restore the standard state.
if (loading) {
this.$send.disabled = false;
} else {
this.updateSendButtonState();
}
if (loading) { if (loading) {
this.wakeLock.acquire(); this.wakeLock.acquire();
} else { } else {