From a9fbe8b3dc2187c750f6e10bba90aef738c792ab Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Mon, 13 Apr 2026 11:16:43 -0300 Subject: [PATCH] feat: Activate default file group in useSimulatorStore; mark subproject commits as dirty in rp2040js and wokwi-elements --- frontend/src/store/useSimulatorStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/store/useSimulatorStore.ts b/frontend/src/store/useSimulatorStore.ts index a65e66bd..113d34d9 100644 --- a/frontend/src/store/useSimulatorStore.ts +++ b/frontend/src/store/useSimulatorStore.ts @@ -697,10 +697,11 @@ export const useSimulatorStore = create((set, get) => { ), })); - // Replace file group with appropriate default files + // Replace file group with appropriate default files and activate it const editorStore = useEditorStore.getState(); editorStore.deleteFileGroup(board.activeFileGroupId); editorStore.createFileGroup(board.activeFileGroupId, mode); + editorStore.setActiveGroup(board.activeFileGroupId); }, startBoard: (boardId: string) => {