Revision: 14774
http://sourceforge.net/p/skim-app/code/14774
Author: hofman
Date: 2024-11-30 17:30:39 +0000 (Sat, 30 Nov 2024)
Log Message:
-----------
simplify update code
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-11-30 17:26:01 UTC (rev 14773)
+++ trunk/SKMainWindowController.m 2024-11-30 17:30:39 UTC (rev 14774)
@@ -2000,16 +2000,11 @@
if ([statusBar progressIndicatorStyle] ==
SKProgressIndicatorStyleDeterminate)
[[statusBar progressIndicator] setDoubleValue:pageIndex + 1.0];
if (pageIndex > 0 && pageIndex % 50 == 0) {
+ NSString *key = mwcFlags.findPaneState == SKFindPaneStateSingular ?
SEARCHRESULTS_KEY : GROUPEDSEARCHRESULTS_KEY;
mwcFlags.updatingFindResults = 1;
- if (mwcFlags.findPaneState == SKFindPaneStateGrouped)
- [self didChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
- else
- [self didChangeValueForKey:SEARCHRESULTS_KEY];
+ [self didChangeValueForKey:key];
mwcFlags.updatingFindResults = 0;
- if (mwcFlags.findPaneState == SKFindPaneStateSingular)
- [self willChangeValueForKey:SEARCHRESULTS_KEY];
- else
- [self willChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
+ [self willChangeValueForKey: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