Skip to content

Commit c82d3d5

Browse files
committed
Back to run with natural stop
When a program ended naturally the Stop button did not go back to Run.
1 parent a201c58 commit c82d3d5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/navbar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,10 @@ function NavBar({ layoutref }: NavBarProps) {
864864
} catch (err) {
865865
console.log(err);
866866
}
867+
// When returning from the execute switch back to RUN mode. This happens when the program ends
868+
// naturaly.
869+
setRunning(false);
870+
broadcastRunningState(false);
867871
}
868872

869873
const handlePowerSwitchOK = async () => {

0 commit comments

Comments
 (0)