ui/common/context.c

branch
newapi
changeset 406
0ebf9d7b23e8
parent 392
df62b7205bd3
child 420
28a5920bebe0
--- a/ui/common/context.c	Wed Dec 04 08:57:35 2024 +0100
+++ b/ui/common/context.c	Wed Dec 04 18:31:22 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