ui/common/context.c

branch
newapi
changeset 232
e2b33055113f
parent 192
bcacd00ea955
child 239
5dd24929f9f6
--- a/ui/common/context.c	Sun Jan 28 10:06:54 2024 +0100
+++ b/ui/common/context.c	Sun Jan 28 11:42:42 2024 +0100
@@ -314,11 +314,15 @@
             break;
         }
         case UI_VAR_LIST: {
-            UiList *f = fromvalue;
-            UiList *t = to->value;
-            if(!f->obj) break;
-            uic_list_copy(f, t);
-            t->update(t, -1);
+            // TODO: not sure how correct this is
+
+            UiVar tmp = *from;
+            *from = *to;
+            *to = tmp;
+
+            UiList* t = to->value;
+            ui_notify(t->observers, NULL);
+            
             break;
         }
         case UI_VAR_RANGE: {

mercurial