Revision: 16251
          http://sourceforge.net/p/skim-app/code/16251
Author:   hofman
Date:     2026-05-08 14:48:06 +0000 (Fri, 08 May 2026)
Log Message:
-----------
go to selected outline item page in presentation mode

Modified Paths:
--------------
    trunk/SKMainWindowController_Actions.m
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2026-05-08 14:22:38 UTC (rev 
16250)
+++ trunk/SKMainWindowController_Actions.m      2026-05-08 14:48:06 UTC (rev 
16251)
@@ -82,6 +82,7 @@
 #import "NSUserDefaults_SKExtensions.h"
 #import "SKNoteToolbarController.h"
 #import "NSView_SKExtensions.h"
+#import "PDFOutline_SKExtensions.h"
 
 #define STATUSBAR_HEIGHT 22.0
 
@@ -246,6 +247,14 @@
         [pdfView performAction:[outlineItem action]];
     else if ([outlineItem destination])
         [pdfView goToDestination:[outlineItem destination]];
+    if ([self interactionMode] == SKPresentationMode) {
+        PDFPage *page = [outlineItem page];
+        if (page) {
+            [presentationView setPage:page];
+            if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKAutoHidePresentationContentsKey])
+                [self hideSideWindow];
+        }
+    }
 }
 
 - (void)goToSelectedFindResults:(id)sender {

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-05-08 14:22:38 UTC (rev 16250)
+++ trunk/SKMainWindowController_UI.m   2026-05-08 14:48:06 UTC (rev 16251)
@@ -124,8 +124,6 @@
 
 - (void)cleanup;
 
-- (void)goToSelectedOutlineItem:(id)sender;
-
 - (void)updatePageLabels;
 - (void)updatePageLabel;
 
@@ -976,8 +974,6 @@
         mwcFlags.updatingOutlineSelection = 1;
         [self goToSelectedOutlineItem:nil];
         mwcFlags.updatingOutlineSelection = 0;
-        if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults 
standardUserDefaults] boolForKey:SKAutoHidePresentationContentsKey])
-            [self hideSideWindow];
     }
 }
 

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