Revision: 15988
http://sourceforge.net/p/skim-app/code/15988
Author: hofman
Date: 2026-01-09 16:48:31 +0000 (Fri, 09 Jan 2026)
Log Message:
-----------
set current annotation to nil in caller when hiding notes
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
trunk/SKPDFView.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2026-01-09 16:12:25 UTC (rev
15987)
+++ trunk/SKMainWindowController_Actions.m 2026-01-09 16:48:31 UTC (rev
15988)
@@ -281,6 +281,8 @@
NSNumber *wasHidden = [NSNumber numberWithBool:[pdfView hideNotes]];
[notes setValue:wasHidden forKey:@"shouldDisplay"];
[notes setValue:wasHidden forKey:@"shouldPrint"];
+ if (wasHidden == NO)
+ [pdfView setCurrentAnnotation:nil];
[pdfView setHideNotes:[pdfView hideNotes] == NO];
[touchBarController handleToolModeChangedNotification:nil];
[noteToolbarController validateButtons];
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-01-09 16:12:25 UTC (rev 15987)
+++ trunk/SKPDFView.m 2026-01-09 16:48:31 UTC (rev 15988)
@@ -847,14 +847,6 @@
return loupeController ? [loupeController magnification] : 0.0;
}
-- (void)setHideNotes:(BOOL)flag {
- if (hideNotes != flag) {
- hideNotes = flag;
- if (hideNotes)
- [self setCurrentAnnotation:nil];
- }
-}
-
- (void)setHighlightAnnotation:(PDFAnnotation *)annotation {
if (annotation != highlightAnnotation) {
highlightAnnotation = annotation;
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