Revision: 15408 http://sourceforge.net/p/skim-app/code/15408 Author: hofman Date: 2025-06-08 13:52:21 +0000 (Sun, 08 Jun 2025) Log Message: ----------- declare add/remove in bulk so we ignore irrelevant calls
Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2025-06-08 08:57:19 UTC (rev 15407) +++ trunk/SKMainWindowController.m 2025-06-08 13:52:21 UTC (rev 15408) @@ -1148,6 +1148,8 @@ NSMutableArray *addedNotes = [NSMutableArray array]; BOOL shouldDisplay = [pdfView hideNotes] == NO; + mwcFlags.addOrRemoveNotesInBulk = 1; + for (NSArray *annotationAndPage in notesAndPagesToAdd) { PDFAnnotation *annotation = [annotationAndPage firstObject]; [annotation setShouldDisplay:shouldDisplay]; @@ -1156,6 +1158,8 @@ [addedNotes addObject:annotation]; } + mwcFlags.addOrRemoveNotesInBulk = 0; + [self insertNotes:addedNotes atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [addedNotes count])]]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit