Prettified Code!

This commit is contained in:
evonneng authored and GitHub Action committed 2022-07-19 23:33:25 +00:00
1 parent 12c7d41241
commit af9cc42fd6
1 file changed
+5 -4
+5 -4
View File
@@ -181,7 +181,7 @@ export class Viewer extends Component {
this.output_options = "default"; this.output_options = "default";
})(); })();
let params = { let params = {
switch: false switch: false,
}; };
// add controls // add controls
this.state.gui this.state.gui
@@ -191,12 +191,13 @@ export class Viewer extends Component {
.onChange((value) => { .onChange((value) => {
this.send_output_type_over_websocket(value); this.send_output_type_over_websocket(value);
}); });
this.state.gui.add(params, "switch") this.state.gui
.add(params, "switch")
.name("Pause Training?") .name("Pause Training?")
.listen() .listen()
.onChange((value)=>{ .onChange((value) => {
this.send_training_state_over_websocket(value); this.send_training_state_over_websocket(value);
}); });
} }
this.created_controls = true; this.created_controls = true;
} }