diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 16:56:15 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 16:56:15 -0700 |
commit | 29d471c8eea0bcf5d23b9e63180e9f1b7089850c (patch) | |
tree | 876e7ee19b520240ff0a578818200903fda9464d /web/web_control.c | |
parent | 99e7a11c25e704851cfbbaed64594acbbd752038 (diff) | |
download | dartboat-29d471c8eea0bcf5d23b9e63180e9f1b7089850c.tar.gz dartboat-29d471c8eea0bcf5d23b9e63180e9f1b7089850c.tar.xz |
web: add exit dialogue while match is active
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/web_control.c b/web/web_control.c index 4495d51..e75b703 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -1,4 +1,5 @@ #include "web_control.h" +#include "web_dom.h" #include "web_match.h" #include "web_opts.h" #include "web_prompt.h" @@ -7,6 +8,7 @@ #include "comp.h" +#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -286,12 +288,14 @@ void start_match() update_player_avg(2, 0); } + dom_enable_exit_dialogue(true); draw_visits(); handle_next(); } void end_match() { + dom_enable_exit_dialogue(false); if (state) free_state(); handle_next(); } |