Revision: 16093
          http://sourceforge.net/p/skim-app/code/16093
Author:   hofman
Date:     2026-03-24 10:29:27 +0000 (Tue, 24 Mar 2026)
Log Message:
-----------
set window frame in savedNormalSetup only when needed, remove otherwise when 
used

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-03-24 10:18:00 UTC (rev 16092)
+++ trunk/SKMainWindowController.m      2026-03-24 10:29:27 UTC (rev 16093)
@@ -570,7 +570,7 @@
     if ([[pdfView document] isLocked]) {
         [window makeFirstResponder:[pdfView 
descendantOfClass:[NSSecureTextField class]]];
         [savedNormalSetup setObject:@YES forKey:LOCKED_KEY];
-        [savedNormalSetup removeObjectsForKeys:@[LEFTSIDEPANEWIDTH_KEY, 
RIGHTSIDEPANEWIDTH_KEY]];
+        [savedNormalSetup removeObjectsForKeys:@[LEFTSIDEPANEWIDTH_KEY, 
RIGHTSIDEPANEWIDTH_KEY, MAINWINDOWFRAME_KEY]];
     } else {
         [savedNormalSetup removeAllObjects];
     }
@@ -602,6 +602,7 @@
             [savedNormalSetup addEntriesFromDictionary:setup];
             if (applySidePaneWidths)
                 [savedNormalSetup 
removeObjectsForKeys:@[LEFTSIDEPANEWIDTH_KEY, RIGHTSIDEPANEWIDTH_KEY]];
+            [savedNormalSetup removeObjectForKey:MAINWINDOWFRAME_KEY];
             if ([snapshotSetups count])
                 [savedNormalSetup 
setObject:mergedSnapshotSetups(snapshotSetups, [setup 
objectForKey:SNAPSHOTS_KEY]) forKey:SNAPSHOTS_KEY];
         } else {
@@ -615,6 +616,7 @@
                 NSMutableDictionary *mutableSetup = [setup mutableCopy];
                 [mutableSetup removeObjectsForKeys:@[@"displayMode", 
@"displayDirection"]];
                 [pdfView setDisplaySettings:mutableSetup];
+                [savedNormalSetup removeObjectForKey:MAINWINDOWFRAME_KEY];
             } else if ([self interactionMode] == SKNormalMode || 
[[[NSUserDefaults standardUserDefaults] 
dictionaryForKey:SKDefaultFullScreenPDFDisplaySettingsKey] count] == 0) {
                 if ([setup objectForKey:PAGEINDEX_KEY])
                     [pdfView setDisplaySettings:setup];

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