ui/common/types.c

changeset 906
edfdf9776da9
parent 902
6872b59217a7
child 964
c563220d9aea
--- a/ui/common/types.c	Tue Nov 18 10:23:42 2025 +0100
+++ b/ui/common/types.c	Tue Nov 18 12:55:28 2025 +0100
@@ -798,6 +798,7 @@
 }
 
 static int ui_set_op = 0;
+static int ui_onchange_events_enabled = TRUE;
 
 void ui_setop_enable(int set) {
     ui_set_op = set;
@@ -807,6 +808,14 @@
     return ui_set_op;
 }
 
+void ui_onchange_events_enable(UiBool enable) {
+    ui_onchange_events_enabled = enable;
+}
+
+UiBool ui_onchange_events_is_enabled(void) {
+    return ui_onchange_events_enabled;
+}
+
 /* ---------------- List initializers and wrapper functions ---------------- */
 
 void ui_global_list_initializer(ui_list_init_func func, void *userdata) {

mercurial