Revision: 27695
          http://sourceforge.net/p/bibdesk/svn/27695
Author:   hofman
Date:     2022-07-05 21:26:10 +0000 (Tue, 05 Jul 2022)
Log Message:
-----------
Only reload smart groups when resorting after item change. Update count bubble 
when displaying them otherwise.

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

Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m  2022-07-05 14:48:45 UTC (rev 27694)
+++ trunk/bibdesk/BibDocument_Groups.m  2022-07-05 21:26:10 UTC (rev 27695)
@@ -587,9 +587,14 @@
     if (updateSmartGroups) {
         [[groups smartGroups] 
makeObjectsPerformSelector:@selector(invalidateCount)];
         isSelected = [self hasGroupTypeSelected:BDSKSmartGroupType];
-        if ([groupOutlineView isItemExpanded:[groups smartParent]] && 
[sortGroupsKey isEqualToString:BDSKDocumentCountKey]) {
-            [[groups smartParent] resort];
-            [parentsToReload addObject:[groups smartParent]];
+        if ([groupOutlineView isItemExpanded:[groups smartParent]]) {
+            if ([sortGroupsKey isEqualToString:BDSKDocumentCountKey]) {
+                [[groups smartParent] resort];
+                [parentsToReload addObject:[groups smartParent]];
+            } else if (NO == [[NSUserDefaults standardUserDefaults] 
boolForKey:BDSKHideGroupCountKey]) {
+                for (BDSKGroup *group in [groups smartGroups])
+                    [self updateCountBubbleForGroup:group inView:nil];
+            }
         }
     }
     

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