fix list update when attaching a context

13 days ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 07 Mar 2025 22:33:38 +0100 (13 days ago)
changeset 492
f74d46ffaca1
parent 491
beb5963c3501
child 493
b045c70d7c02

fix list update when attaching a context

ui/common/context.c file | annotate | diff | comparison | revisions
--- a/ui/common/context.c	Fri Mar 07 21:46:52 2025 +0100
+++ b/ui/common/context.c	Fri Mar 07 22:33:38 2025 +0100
@@ -347,7 +347,10 @@
             *to = tmp;
 
             UiList* t2 = to->value;
-            ui_notify(t2->observers, NULL);
+            if(t->update) {
+                t->update(t, -1);
+            }
+            ui_notify(t2->observers, NULL); // TODO: why not t?
             
             break;
         }

mercurial