Revision: 14661
          http://sourceforge.net/p/skim-app/code/14661
Author:   hofman
Date:     2024-11-09 15:13:24 +0000 (Sat, 09 Nov 2024)
Log Message:
-----------
no need to load window controller when applying setup

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

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2024-11-08 17:06:43 UTC (rev 14660)
+++ trunk/SKNotesDocument.m     2024-11-09 15:13:24 UTC (rev 14661)
@@ -409,12 +409,8 @@
 
 - (void)applySetup:(NSDictionary *)setup {
     NSString *rectString = [setup objectForKey:SKDocumentSetupWindowFrameKey];
-    NSWindowController *wc = [[self windowControllers] lastObject];
-    if (wc == nil) {
-        [self makeWindowControllers];
-        wc = [[self windowControllers] lastObject];
-    }
     if (rectString) {
+        NSWindowController *wc = [[self windowControllers] firstObject];
         if ([wc isWindowLoaded] == NO) {
             windowRect = NSRectFromString(rectString);
         } else {

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