Revision: 16427
          http://sourceforge.net/p/skim-app/code/16427
Author:   hofman
Date:     2026-09-06 09:11:23 +0000 (Sun, 06 Sep 2026)
Log Message:
-----------
select notes pane state when opening pane only for notes

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-09-06 09:06:29 UTC (rev 16426)
+++ trunk/SKMainWindowController.m      2026-09-06 09:11:23 UTC (rev 16427)
@@ -460,8 +460,12 @@
         [leftSideController.button setEnabled:NO 
forSegment:SKSidePaneStateOutline];
     
     // Show/hide right side pane if necessary
-    if ([sud boolForKey:SKOpenNotesPaneOnlyForNotesKey])
-        [[[splitViewController splitViewItems] lastObject] setCollapsed:[notes 
count] == 0];
+    BOOL hasNotes = [notes count] == 0;
+    if ([sud boolForKey:SKOpenNotesPaneOnlyForNotesKey]) {
+        [[[splitViewController splitViewItems] lastObject] 
setCollapsed:hasNotes];
+        if (hasNotes)
+            [self setRightSidePaneState:SKSidePaneStateNote];
+    }
     
     // Due to a bug in Leopard we should only resize and swap in the PDFView 
after loading the PDFDocument
     

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