Revision: 14160
          http://sourceforge.net/p/skim-app/code/14160
Author:   hofman
Date:     2024-04-01 09:41:07 +0000 (Mon, 01 Apr 2024)
Log Message:
-----------
remove option to hide side panes in full screen, this is not documented 
anywhere so will never ber used

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2024-04-01 09:36:25 UTC (rev 
14159)
+++ trunk/SKMainWindowController_FullScreen.m   2024-04-01 09:41:07 UTC (rev 
14160)
@@ -77,7 +77,6 @@
 #define WINDOW_KEY @"window"
 
 #define SKAutoHideToolbarInFullScreenKey @"SKAutoHideToolbarInFullScreen"
-#define SKCollapseSidePanesInFullScreenKey @"SKCollapseSidePanesInFullScreen"
 #define SKResizablePresentationKey @"SKResizablePresentation"
 
 #define AppleMenuBarVisibleInFullscreenKey @"AppleMenuBarVisibleInFullscreen"
@@ -85,7 +84,6 @@
 #define PRESENTATION_DURATION 0.5
 
 static BOOL autoHideToolbarInFullScreen = NO;
-static BOOL collapseSidePanesInFullScreen = NO;
 
 static CGFloat fullScreenToolbarOffset = 0.0;
 
@@ -104,7 +102,6 @@
 + (void)defineFullScreenGlobalVariables {
     NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
     autoHideToolbarInFullScreen = [sud 
boolForKey:SKAutoHideToolbarInFullScreenKey];
-    collapseSidePanesInFullScreen = [sud 
boolForKey:SKCollapseSidePanesInFullScreenKey];
     
     fullScreenToolbarOffset = 0.0;
 }
@@ -679,11 +676,6 @@
     [secondaryPdfView setBackgroundColor:backgroundColor];
     if ([[pdfView document] isLocked] == NO && [fullScreenSetup count])
         [self applyPDFSettings:fullScreenSetup rewind:YES];
-    if (collapseSidePanesInFullScreen) {
-        [savedNormalSetup setObject:[NSNumber numberWithDouble:[self 
leftSideWidth]] forKey:LEFTSIDEPANEWIDTH_KEY];
-        [savedNormalSetup setObject:[NSNumber numberWithDouble:[self 
rightSideWidth]] forKey:RIGHTSIDEPANEWIDTH_KEY];
-        [self applyLeftSideWidth:0.0 rightSideWidth:0.0];
-    }
     [self forceSubwindowsOnTop:YES];
     mwcFlags.isSwitchingFullScreen = 0;
 }
@@ -787,8 +779,6 @@
         [secondaryPdfView setBackgroundColor:backgroundColor];
         if ([[pdfView document] isLocked] == NO)
             [self applyPDFSettings:fullScreenSetup rewind:YES];
-        if (collapseSidePanesInFullScreen)
-            [self applyLeftSideWidth:0.0 rightSideWidth:0.0];
         [self forceSubwindowsOnTop:YES];
     }
     animationWindow = 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

Reply via email to