Revision: 15038 http://sourceforge.net/p/skim-app/code/15038 Author: hofman Date: 2025-03-28 16:55:52 +0000 (Fri, 28 Mar 2025) Log Message: ----------- Only deactivate color swatch when selected color changes
Modified Paths: -------------- trunk/SKColorSwatch.m Modified: trunk/SKColorSwatch.m =================================================================== --- trunk/SKColorSwatch.m 2025-03-28 16:49:05 UTC (rev 15037) +++ trunk/SKColorSwatch.m 2025-03-28 16:55:52 UTC (rev 15038) @@ -475,7 +475,8 @@ - (void)setColors:(NSArray *)newColors { NSUInteger i, iMax = [newColors count], oldCount = [itemViews count]; - [self deactivate]; + if (selectedIndex != -1 && (selectedIndex >= (NSInteger)iMax || [[newColors objectAtIndex:selectedIndex] isEqual:[[itemViews objectAtIndex:selectedIndex] color]] == NO)) + [self deactivate]; for (i = 0; i < iMax; i++) { SKColorSwatchItemView *itemView; if (i < [itemViews 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