Revision: 14771
http://sourceforge.net/p/skim-app/code/14771
Author: hofman
Date: 2024-11-30 17:20:36 +0000 (Sat, 30 Nov 2024)
Log Message:
-----------
Don't notify update for first page
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-11-30 17:17:51 UTC (rev 14770)
+++ trunk/SKMainWindowController.m 2024-11-30 17:20:36 UTC (rev 14771)
@@ -1996,10 +1996,10 @@
}
- (void)documentDidEndPageFind:(NSNotification *)note {
- NSNumber *pageIndex = [[note userInfo]
objectForKey:@"PDFDocumentPageIndex"];
+ NSUInteger pageIndex = [[[note userInfo]
objectForKey:@"PDFDocumentPageIndex"] unsignedIntValue];
if ([statusBar progressIndicatorStyle] ==
SKProgressIndicatorStyleDeterminate)
- [[statusBar progressIndicator] setDoubleValue:[pageIndex doubleValue]
+ 1.0];
- if ([pageIndex unsignedIntegerValue] % 50 == 0) {
+ [[statusBar progressIndicator] setDoubleValue:pageIndex + 1.0];
+ if (pageIndex > 0 && pageIndex % 50 == 0) {
mwcFlags.updatingFindResults = 1;
[self didChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
[self didChangeValueForKey:SEARCHRESULTS_KEY];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit