]> uap-core.de Git - note.git/commitdiff
init loaded attachments as saved
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 29 Apr 2025 17:20:15 +0000 (19:20 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 29 Apr 2025 17:20:15 +0000 (19:20 +0200)
application/note.c

index fc5af95e6a685d0087717310742f437284b6eca5..6ba7d3c63442d6311f253399e3841739ba3d7f33 100644 (file)
@@ -152,7 +152,8 @@ static void note_attachments_loaded(UiEvent *event, int error, void *userdata) {
             attachment_create_ui_model(op->note->model->ctx, attachment, op->note);
             if(attachment->bin_content.length > 0) {
                 printf("attachment content loaded\n");
-            }
+                attachment->saved = TRUE;
+            } // else: TODO: is this an error?
         }
     }