ui/cocoa/list.m

changeset 1057
b0bc313dea43
parent 1026
4f94daefb421
--- a/ui/cocoa/list.m	Sun Jan 25 11:24:02 2026 +0100
+++ b/ui/cocoa/list.m	Sun Jan 25 11:44:49 2026 +0100
@@ -263,7 +263,7 @@
     event.eventdatatype = UI_EVENT_DATA_LIST_ELM;
     event.intval = index;
     
-    if(_onselection) {
+    if(_onselection && ui_selection_events_is_enabled()) {
         _onselection(&event, _onselectiondata);
     }
     

mercurial