Revision: 27767
          http://sourceforge.net/p/bibdesk/svn/27767
Author:   hofman
Date:     2022-07-24 22:57:43 +0000 (Sun, 24 Jul 2022)
Log Message:
-----------
no need to reload icons after live resize or change of display mode, only 
redraw or relayout as needed

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2022-07-24 
21:39:22 UTC (rev 27766)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2022-07-24 
22:57:43 UTC (rev 27767)
@@ -718,7 +718,7 @@
         NSPoint scrollPoint = [self scrollPercentage];
         
         // the full view will likely need repainting, this also recalculates 
the grid
-        [self reloadIcons];
+        [self _resetViewLayout];
         
         [self setScrollPercentage:scrollPoint];
         
@@ -958,8 +958,8 @@
     }
     else {
         [super unbind:binding];
+        [self reloadIcons];
     }
-    [self reloadIcons];
 }
 
 - (NSDictionary *)infoForBinding:(NSString *)binding;
@@ -2285,7 +2285,7 @@
 // redraw at full quality after a resize
 - (void)viewDidEndLiveResize
 {
-    [self reloadIcons];
+    [self setNeedsDisplay:YES];
     _fvFlags.scheduledLiveResize = NO;
 }
 

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