Skip to content

Commit

Permalink
don't start sim when switching to hc (#9715)
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll authored Oct 10, 2023
1 parent c240cd1 commit c8c1b7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3755,8 +3755,10 @@ export class ProjectView
this.clearSerial();
// Not this.restartSimulator; need full restart to consistently update visuals,
// and don't want to steal focus.
this.stopSimulator();
this.startSimulator();
if (this.isSimulatorRunning()) {
this.stopSimulator();
this.startSimulator();
}

const highContrast = this.getData<boolean>(auth.HIGHCONTRAST);
const bodyIsHighContrast = document.body.classList.contains("high-contrast");
Expand Down

0 comments on commit c8c1b7a

Please sign in to comment.