ui/common/context.c

changeset 3
f154867f54dc
parent 0
2483f517c562
child 8
726b24766437
--- a/ui/common/context.c	Sat Jan 27 17:50:19 2024 +0100
+++ b/ui/common/context.c	Sun Jan 28 16:31:34 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