Revision: 15363 http://sourceforge.net/p/skim-app/code/15363 Author: hofman Date: 2025-06-04 13:54:04 +0000 (Wed, 04 Jun 2025) Log Message: ----------- don't add snapshots from setup when they are the same
Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2025-06-04 09:30:43 UTC (rev 15362) +++ trunk/SKMainWindowController.m 2025-06-04 13:54:04 UTC (rev 15363) @@ -571,7 +571,7 @@ if ([[pdfView document] isLocked]) { NSMutableArray *snapshotSetups = [savedNormalSetup objectForKey:SNAPSHOTS_KEY]; [savedNormalSetup addEntriesFromDictionary:setup]; - if ([snapshotSetups count]) + if ([snapshotSetups count] && [snapshotSetups isEqualToArray:[setup objectForKey:SNAPSHOTS_KEY]] == NO) [savedNormalSetup setObject:[snapshotSetups arrayByAddingObjectsFromArray:[setup objectForKey:SNAPSHOTS_KEY]] forKey:SNAPSHOTS_KEY]; } else { if ([self interactionMode] != SKNormalMode) { 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