application/application.c

changeset 88
e27526429d85
parent 68
79a9aadf1c70
child 89
2fbb3cac05a5
--- a/application/application.c	Sun Nov 17 15:19:32 2024 +0100
+++ b/application/application.c	Tue Nov 26 10:40:45 2024 +0100
@@ -307,6 +307,14 @@
     ui_listselection_free(sel);
 }
 
+void action_selectall(UiEvent *event, void *data) {
+    DavBrowser *browser = event->document;
+    int nres = ui_list_count(browser->resources);
+    for(int i=0;i<nres;i++) {
+        ui_list_setselection(browser->resources, i);
+    }
+}
+
 static void newfiledialog_result(UiEvent *event, void *data) {
     DavBrowser *browser = event->document;
     char *path = event->eventdata;

mercurial