Revision: 16701
http://sourceforge.net/p/skim-app/code/16701
Author: hofman
Date: 2026-10-23 14:28:53 +0000 (Fri, 23 Oct 2026)
Log Message:
-----------
get presentation notes pdfview only when there is a presentation notes document
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2026-10-23 09:22:31 UTC (rev
16700)
+++ trunk/SKMainWindowController_FullScreen.m 2026-10-23 14:28:53 UTC (rev
16701)
@@ -349,8 +349,7 @@
[presentationView didOpen];
- if ([self presentationNotesDocument])
- [self addPresentationNotesNavigation];
+ [self addPresentationNotesNavigation];
mwcFlags.isSwitchingFullScreen = 0;
}];
@@ -783,14 +782,16 @@
#pragma mark Presentation Notes Navigation
- (NSView *)presentationNotesView {
- if ([[self presentationNotesDocument] isEqual:[self document]])
+ NSDocument *notesDocument = [self presentationNotesDocument];
+ if (notesDocument == nil)
+ return nil;
+ else if ([notesDocument isEqual:[self document]])
return [[presentationNotesAuxiliary previewController] pdfView];
else
- return [(SKMainDocument *)[self presentationNotesDocument] pdfView];
+ return [(SKMainDocument *)notesDocument pdfView];
}
- (void)addPresentationNotesNavigation {
- [self removePresentationNotesNavigation];
NSView *notesView = [self presentationNotesView];
if (notesView) {
NSTrackingArea *trackingArea = [[NSTrackingArea alloc]
initWithRect:NSZeroRect options:NSTrackingMouseEnteredAndExited |
NSTrackingActiveInActiveApp | NSTrackingInVisibleRect owner:self userInfo:nil];
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