ui/common/context.c

changeset 100
d2bd73d28ff1
parent 88
e27526429d85
--- a/ui/common/context.c	Fri Nov 29 22:21:36 2024 +0100
+++ b/ui/common/context.c	Thu Dec 12 20:01:43 2024 +0100
@@ -187,6 +187,13 @@
 }
 
 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type) {
+    if(ctx->vars_unbound) {
+        UiVar *unbound = cxMapGet(ctx->vars_unbound, name);
+        if(unbound) {
+            return unbound;
+        }
+    }
+    
     UiVar *var = uic_get_var(ctx, name);
     if(var) {
         if(var->type == type) {

mercurial