Revision: 15463
          http://sourceforge.net/p/skim-app/code/15463
Author:   hofman
Date:     2025-06-15 14:13:10 +0000 (Sun, 15 Jun 2025)
Log Message:
-----------
only need to set widgets when document was locked, not when unlocking for owner

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-06-15 14:04:27 UTC (rev 15462)
+++ trunk/SKMainWindowController.m      2025-06-15 14:13:10 UTC (rev 15463)
@@ -2153,14 +2153,14 @@
         }
     }
     
-    if (placeholderWidgetProperties)
-        [[[self document] undoManager] disableUndoRegistration];
-    [self updateWidgetsWithProperties:placeholderWidgetProperties reset:NO];
-    if (placeholderWidgetProperties)
-        [[[self document] undoManager] enableUndoRegistration];
-    placeholderWidgetProperties = nil;
+    if (wasLocked) {
+        if (placeholderWidgetProperties)
+            [[[self document] undoManager] disableUndoRegistration];
+        [self updateWidgetsWithProperties:placeholderWidgetProperties 
reset:NO];
+        if (placeholderWidgetProperties)
+            [[[self document] undoManager] enableUndoRegistration];
+        placeholderWidgetProperties = nil;
     
-    if (wasLocked) {
         [self updatePageLabelsAndOutlineForExpansionState:nil];
         
         // when the PDF was locked, PDFView resets the display settings, so we 
need to reapply them, however if we don't delay it's reset again immediately

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