Revision: 29645
          http://sourceforge.net/p/bibdesk/svn/29645
Author:   hofman
Date:     2025-09-29 16:03:17 +0000 (Mon, 29 Sep 2025)
Log Message:
-----------
no separate method

Modified Paths:
--------------
    trunk/bibdesk/BDSKFileSearchIndex.m

Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2025-09-29 16:01:17 UTC (rev 29644)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2025-09-29 16:03:17 UTC (rev 29645)
@@ -289,7 +289,7 @@
 
 - (void)didUpdate
 {
-    // Make sure we send frequently enough to update a progress bar, but not 
too frequently to avoid beachball on single-core systems; too many search 
updates slow down indexing due to repeated flushes. 
+    // Make sure we send frequently enough to update a progress bar, but not 
too frequently to avoid beachball on single-core systems; too many search 
updates slow down indexing due to repeated flushes.
     if (NO == atomic_load(&flags.updateScheduled)) {
         CGFloat updateDelay = atomic_load(&flags.status) == 
BDSKSearchIndexStatusRunning ? 1.0 : 0.1;
         dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(updateDelay 
* NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
@@ -300,18 +300,12 @@
     }
 }
 
-- (void)searchIndexDidUpdateStatus
-{
-    BDSKASSERT([NSThread isMainThread]);
-    if ([self shouldKeepRunning])
-        [delegate searchIndexDidUpdateStatus:self];
-}
-
 - (void)updateStatus:(BDSKSearchIndexStatus)status
 {
     atomic_store(&flags.status, status);
     dispatch_async(dispatch_get_main_queue(), ^{
-        [self searchIndexDidUpdateStatus];
+        if ([self shouldKeepRunning])
+            [delegate searchIndexDidUpdateStatus:self];
     });
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to