ui/cocoa/list.m

changeset 869
6b7a178cff7c
parent 834
8801df33144f
child 965
5d4419042d9b
--- 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);

mercurial