Revision: 15164 http://sourceforge.net/p/skim-app/code/15164 Author: hofman Date: 2025-05-07 15:35:42 +0000 (Wed, 07 May 2025) Log Message: ----------- no need for local variables
Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2025-05-07 15:30:47 UTC (rev 15163) +++ trunk/SKMainWindowController.m 2025-05-07 15:35:42 UTC (rev 15164) @@ -2364,10 +2364,7 @@ if (openType == SKSnapshotOpenPreview) return; - BOOL isVisible = [self rightSidePaneIsOpen] && [self rightSidePaneState] == SKSidePaneStateSnapshot; - CGFloat scale = [[self window] backingScaleFactor]; - NSImage *image = [controller placeholderThumbnailWithSize:snapshotCacheSize scale:scale]; - + NSImage *image = [controller placeholderThumbnailWithSize:snapshotCacheSize scale:[[self window] backingScaleFactor]]; [controller setThumbnail:image]; [self snapshotNeedsUpdate:controller placeholder:YES]; @@ -2380,7 +2377,7 @@ NSUInteger row = [[rightSideController.snapshotArrayController arrangedObjects] indexOfObject:controller]; if (row != NSNotFound) { NSTableViewAnimationOptions options = NSTableViewAnimationEffectNone; - if (isVisible && [NSView shouldShowSlideAnimation]) + if ([self rightSidePaneIsOpen] && [self rightSidePaneState] == SKSidePaneStateSnapshot && [NSView shouldShowSlideAnimation]) options = NSTableViewAnimationEffectGap | NSTableViewAnimationSlideDown; [rightSideController.snapshotTableView insertRowsAtIndexes:[NSIndexSet indexSetWithIndex:row] withAnimation:options]; } 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