From 6a5cc149d373354941d046d3b3d851901fb4caf3 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 16 May 2022 01:34:54 -0700 Subject: web: support ending ongoing match; ui/colour tweaks Ending a match while the computer is throwing currently results in data being written to the prompt because any scheduled C calls are not being cleared yet. --- web/web_control.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/web_control.c') diff --git a/web/web_control.c b/web/web_control.c index 6d61f5c..8148e89 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -289,12 +289,14 @@ void start_match() } dom_enable_exit_dialogue(true); + dom_add_class("#key-exit", "visible"); draw_visits(); handle_next(); } void end_match() { + dom_remove_class("#key-exit", "visible"); dom_enable_exit_dialogue(false); if (state) free_state(); handle_next(); -- cgit v1.2.3-70-g09d2