Revision: 14703
          http://sourceforge.net/p/skim-app/code/14703
Author:   hofman
Date:     2024-11-16 22:25:58 +0000 (Sat, 16 Nov 2024)
Log Message:
-----------
Show downloads window before adding download, so the window is loaded and the 
table selection can change

Modified Paths:
--------------
    trunk/SKApplicationController.m

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2024-11-16 15:15:52 UTC (rev 14702)
+++ trunk/SKApplicationController.m     2024-11-16 22:25:58 UTC (rev 14703)
@@ -478,9 +478,9 @@
             }
         } else if (theURL) {
             SKDownload *download = [[SKDownload alloc] initWithURL:theURL];
-            [[self downloadController] addObjectToDownloads:download];
             if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKAutoOpenDownloadsWindowKey])
                 [[self downloadController] showWindow:self];
+            [[self downloadController] addObjectToDownloads:download];
         }
     }
 }
@@ -530,9 +530,9 @@
 }
 
 - (void)insertObject:(SKDownload *)download 
inDownloadsAtIndex:(NSUInteger)anIndex {
-    [[self downloadController] addObjectToDownloads:download];
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKAutoOpenDownloadsWindowKey])
         [[self downloadController] showWindow:nil];
+    [[self downloadController] addObjectToDownloads:download];
 }
 
 - (void)removeObjectFromDownloadsAtIndex:(NSUInteger)anIndex {

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

Reply via email to