Skip to content

Commit

Permalink
Fix #6002: restart sim on laserpulse change
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Jun 29, 2023
1 parent c16a031 commit 61ac1ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sirepo/package_data/static/js/silas.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ SIREPO.app.controller('SourceController', function (appState, frameCache, persis
self.simState = persistentSimulation.initSimulationState(self);

$scope.$on('laserPulse.changed', () => {
if (frameCache.getFrameCount() > 0) {
frameCache.setFrameCount(0);
appState.models.simulation.framesCleared = true;
appState.saveQuietly('simulation');
}
self.simState.runSimulation();
});
});

Expand Down

0 comments on commit 61ac1ef

Please sign in to comment.