feat: Activate default file group in useSimulatorStore; mark subproject commits as dirty in rp2040js and wokwi-elements

This commit is contained in:
David Montero Crespo 2026-04-13 11:16:43 -03:00
parent 67a8373c80
commit a9fbe8b3dc
1 changed files with 2 additions and 1 deletions

View File

@ -697,10 +697,11 @@ export const useSimulatorStore = create<SimulatorState>((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) => {