Revision: 29995
          http://sourceforge.net/p/bibdesk/svn/29995
Author:   hofman
Date:     2026-02-15 22:32:37 +0000 (Sun, 15 Feb 2026)
Log Message:
-----------
set progress indicator style when creating, set progress to 0 for indeterminate 
progress indicator

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

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-02-15 
16:36:38 UTC (rev 29994)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-02-15 
22:32:37 UTC (rev 29995)
@@ -4217,17 +4217,26 @@
             _progressIndicators = [[NSMutableDictionary alloc] init];
         [_progressIndicators setObject:progressIndicator forKey:aURL];
         [progressIndicator setFrame:[self 
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
-        [progressIndicator setCurrentProgress:progress];
+        if (progress < 0.0) {
+            [progressIndicator setStyle:FVProgressIndicatorIndeterminate];
+            [progressIndicator setCurrentProgress:0.0];
+        } else {
+            [progressIndicator setStyle:FVProgressIndicatorDeterminate];
+            [progressIndicator setCurrentProgress:progress];
+        }
         [_contentView addSubview:progressIndicator];
-    } else if (anIndex != [progressIndicator indexInView]) {
-        [progressIndicator setIndexInView:anIndex];
-        [progressIndicator setFrame:[self 
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
-    }
-    if (progress < 0.0) {
-        [progressIndicator setStyle:FVProgressIndicatorIndeterminate];
     } else {
-        [progressIndicator setStyle:FVProgressIndicatorDeterminate];
-        [[progressIndicator animator] setCurrentProgress:progress];
+        if (anIndex != [progressIndicator indexInView]) {
+            [progressIndicator setIndexInView:anIndex];
+            [progressIndicator setFrame:[self 
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
+        }
+        if (progress < 0.0) {
+            [progressIndicator setStyle:FVProgressIndicatorIndeterminate];
+            [progressIndicator setCurrentProgress:0.0];
+        } else {
+            [progressIndicator setStyle:FVProgressIndicatorDeterminate];
+            [[progressIndicator animator] setCurrentProgress:progress];
+        }
     }
 }
 

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