feat: Activate default file group in useSimulatorStore; mark subproject commits as dirty in rp2040js and wokwi-elements
This commit is contained in:
parent
67a8373c80
commit
a9fbe8b3dc
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue