ui/common/context.c

changeset 492
f74d46ffaca1
parent 486
a5f3abf8b9d1
--- 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