diff -r be3df094f8db -r 6b7a178cff7c ui/cocoa/list.m --- a/ui/cocoa/list.m Tue Oct 21 12:27:20 2025 +0200 +++ b/ui/cocoa/list.m Tue Oct 21 12:34:17 2025 +0200 @@ -363,6 +363,18 @@ /* --------------------------- SourceList --------------------------- */ +static ui_sourcelist_update_func sclist_update_callback = NULL; + +void ui_sourcelist_set_update_callback(ui_sourcelist_update_func cb) { + sclist_update_callback = cb; +} + +void ui_sourcelist_updated(void) { + if(sclist_update_callback) { + sclist_update_callback(); + } +} + static void sublist_free(const CxAllocator *a, UiSubList *sl) { cxFree(a, (char*)sl->varname); cxFree(a, (char*)sl->header);