Revision: 15213
          http://sourceforge.net/p/skim-app/code/15213
Author:   hofman
Date:     2025-05-15 09:29:50 +0000 (Thu, 15 May 2025)
Log Message:
-----------
don't bother registering anmything except thumbnail update when removing 
temporary notes when closing presentation

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-05-15 09:22:28 UTC (rev 15212)
+++ trunk/SKMainWindowController.m      2025-05-15 09:29:50 UTC (rev 15213)
@@ -2228,13 +2228,16 @@
     NSUndoManager *undoManager = [[self document] undoManager];
     
     if ([self interactionMode] == SKPresentationMode && [undoManager 
isUndoing] == NO && [undoManager isRedoing] == NO) {
-        [[[self presentationUndoManager] 
prepareWithInvocationTarget:[notification object]] addAnnotation:annotation 
toPage:page];
-        
-        [presentationNotes removeObject:annotation];
-        if (page) {
+        if (mwcFlags.isSwitchingFullScreen == 0) {
+            [[[self presentationUndoManager] 
prepareWithInvocationTarget:[notification object]] addAnnotation:annotation 
toPage:page];
+            
+            [presentationNotes removeObject:annotation];
+            if (page) {
+                [self updateThumbnailAtPageIndex:[page pageIndex]];
+                [presentationView updatedAnnotationOnPage:page];
+            }
+        } else if (page) {
             [self updateThumbnailAtPageIndex:[page pageIndex]];
-            if (mwcFlags.isSwitchingFullScreen == 0)
-                [presentationView updatedAnnotationOnPage:page];
         }
     } else {
         [[undoManager prepareWithInvocationTarget:[notification object]] 
addAnnotation:annotation toPage:page];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to