fix(toolbar): Run stays enabled on running QEMU-Linux boards — re-run without reboot was unreachable

This commit is contained in:
David Montero Crespo 2026-07-28 20:01:39 +02:00
parent bbafe66ee7
commit 248d8b5e97
1 changed files with 7 additions and 1 deletions

View File

@ -1478,7 +1478,13 @@ export const EditorToolbar = ({
? digitalRunning || verifying
: isMultiBoard
? compileAllRunning || anyBoardRunning || verifying
: running || compiling || verifying || !activeBoard
: // QEMU-Linux boards keep Run enabled while running:
// on a booted guest it re-uploads the edited files
// and re-runs the script without the ~45 s reboot.
(running && !isPiBoardKind(activeBoard?.boardKind ?? '')) ||
compiling ||
verifying ||
!activeBoard
}
className="tb-btn tb-btn-run"
title={