Revision: 14772
http://sourceforge.net/p/skim-app/code/14772
Author: hofman
Date: 2024-11-30 17:23:46 +0000 (Sat, 30 Nov 2024)
Log Message:
-----------
Don't bother to notify update for find results table that is not shown
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-11-30 17:20:36 UTC (rev 14771)
+++ trunk/SKMainWindowController.m 2024-11-30 17:23:46 UTC (rev 14772)
@@ -2001,11 +2001,15 @@
[[statusBar progressIndicator] setDoubleValue:pageIndex + 1.0];
if (pageIndex > 0 && pageIndex % 50 == 0) {
mwcFlags.updatingFindResults = 1;
- [self didChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
- [self didChangeValueForKey:SEARCHRESULTS_KEY];
+ if ([self findPaneState] == SKFindPaneStateGrouped)
+ [self didChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
+ if ([self findPaneState] == SKFindPaneStateSingular)
+ [self didChangeValueForKey:SEARCHRESULTS_KEY];
mwcFlags.updatingFindResults = 0;
- [self willChangeValueForKey:SEARCHRESULTS_KEY];
- [self willChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
+ if ([self findPaneState] == SKFindPaneStateSingular)
+ [self willChangeValueForKey:SEARCHRESULTS_KEY];
+ if ([self findPaneState] == SKFindPaneStateGrouped)
+ [self willChangeValueForKey:GROUPEDSEARCHRESULTS_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