diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-16 01:34:54 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-16 01:36:56 -0700 |
commit | 6a5cc149d373354941d046d3b3d851901fb4caf3 (patch) | |
tree | 773e7fd7135c50cd126eef34d720dcfe64f3a4e7 /web/web_control.c | |
parent | 72fa8e2849ab618fa66b776fd4af6d18d025fd51 (diff) | |
download | dartboat-6a5cc149d373354941d046d3b3d851901fb4caf3.tar.gz dartboat-6a5cc149d373354941d046d3b3d851901fb4caf3.tar.xz |
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.
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |