From: Olaf Wintermann Date: Sat, 6 Jun 2026 17:17:25 +0000 (+0200) Subject: fix new notes are not always selected X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=0474f1f5e00e634c5c9a29c627065493e203f8e1;p=note.git fix new notes are not always selected --- diff --git a/ui/cocoa/list.m b/ui/cocoa/list.m index bf6deba..132d84a 100644 --- a/ui/cocoa/list.m +++ b/ui/cocoa/list.m @@ -215,6 +215,7 @@ UIWIDGET ui_table_create(UiObject* obj, UiListArgs *args) { void ui_tableview_update(UiList *list, int i) { NSTableView *tableview = (__bridge NSTableView*)list->obj; if(i < 0) { + [tableview deselectAll: tableview]; [tableview reloadData]; } else { [tableview reloadData]; // TODO: optimize