Refactor simulation reset logic to use controller method
This commit is contained in:
@@ -4904,7 +4904,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
if (options.resetEditorSimulation === true && !editorSimulationPlaying) {
|
if (options.resetEditorSimulation === true && !editorSimulationPlaying) {
|
||||||
setEditorSimulationClockOverride(null);
|
editorSimulationController.reset();
|
||||||
}
|
}
|
||||||
setStatusMessage(successMessage);
|
setStatusMessage(successMessage);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user