Revision: 15566
          http://sourceforge.net/p/skim-app/code/15566
Author:   hofman
Date:     2025-06-29 16:20:01 +0000 (Sun, 29 Jun 2025)
Log Message:
-----------
reuse variable

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

Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m     2025-06-29 16:10:02 UTC (rev 15565)
+++ trunk/NSDocument_SKExtensions.m     2025-06-29 16:20:01 UTC (rev 15566)
@@ -135,14 +135,14 @@
     }
     
     NSWindow *window = [self primaryWindow];
-    if (window)
+    if (window) {
         [setup setObject:NSStringFromRect([window frame]) 
forKey:SKDocumentSetupWindowFrameKey];
+        
+        NSString *tabs = [window tabIndexesInWindows:[[NSApp orderedDocuments] 
valueForKey:@"primaryWindow"]];
+        if (tabs)
+            [setup setObject:tabs forKey:SKDocumentSetupTabsKey];
+    }
     
-    NSArray *windows = [[NSApp orderedDocuments] valueForKey:@"primaryWindow"];
-    NSString *tabs = [[self primaryWindow] tabIndexesInWindows:windows];
-    if (tabs)
-        [setup setObject:tabs forKey:SKDocumentSetupTabsKey];
-    
     return setup;
 }
 

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to