Skip to content

Commit

Permalink
Merge pull request #77 from kieler/sdo/fixSimulationControlNotShowing
Browse files Browse the repository at this point in the history
Update simulation view on table initialize.
  • Loading branch information
NiklasRentzCAU authored Apr 26, 2024
2 parents 11c9b41 + a9357a0 commit c51f175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keith-vscode/src/simulation/simulation-table-data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,10 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider {
}
})
this.controlsEnabled = true
this.initializeTable()
this.simulationRunning = true
vscode.commands.executeCommand('setContext', 'keith.vscode:simulationRunning', this.simulationRunning)
this.simulationStep = 0
this.initializeTable()
// Show simulation view
this.update()
}
Expand Down Expand Up @@ -651,7 +651,6 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider {
async startOrPauseSimulation(): Promise<void> {
this.play = !this.play
vscode.commands.executeCommand('setContext', 'keith.vscode:play', this.play)
// this.update()
if (this.play) {
await this.waitForNextStep()
}
Expand Down Expand Up @@ -821,6 +820,7 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider {
)
}
})
this.update()
}

update(): void {
Expand Down

0 comments on commit c51f175

Please sign in to comment.