13 days ago
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; }