Revision: 14203
          http://sourceforge.net/p/skim-app/code/14203
Author:   hofman
Date:     2024-04-10 16:33:49 +0000 (Wed, 10 Apr 2024)
Log Message:
-----------
use saved normal setup for current setup when the document is locked

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-04-10 16:06:57 UTC (rev 14202)
+++ trunk/SKMainWindowController.m      2024-04-10 16:33:49 UTC (rev 14203)
@@ -592,7 +592,7 @@
         [setup setObject:[snapshots valueForKey:SKSnapshotCurrentSetupKey] 
forKey:SNAPSHOTS_KEY];
     if ([self interactionMode] != SKPresentationMode)
         [setup addEntriesFromDictionary:[self currentPDFSettings]];
-    if ([self interactionMode] != SKNormalMode) {
+    if ([self interactionMode] != SKNormalMode || [[pdfView document] 
isLocked]) {
         [setup addEntriesFromDictionary:savedNormalSetup];
         [setup removeObjectsForKeys:@[HASHORIZONTALSCROLLER_KEY, 
HASVERTICALSCROLLER_KEY, AUTOHIDESSCROLLERS_KEY, DRAWSBACKGROUND_KEY, 
TABGROUP_KEY, TABINDEX_KEY, LOCKED_KEY]];
     }

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