Revision: 16818
          http://sourceforge.net/p/skim-app/code/16818
Author:   hofman
Date:     2026-12-04 16:51:49 +0000 (Fri, 04 Dec 2026)
Log Message:
-----------
save left side pane width in side window so the variable is temporary only when 
needed

Modified Paths:
--------------
    trunk/SKMainWindowController.h
    trunk/SKMainWindowController_FullScreen.m
    trunk/SKSideWindow.h
    trunk/SKSideWindow.m

Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h      2026-12-03 16:53:27 UTC (rev 16817)
+++ trunk/SKMainWindowController.h      2026-12-04 16:51:49 UTC (rev 16818)
@@ -167,7 +167,6 @@
     struct _mwcFlags {
         unsigned int leftSidePaneState:1;
         unsigned int rightSidePaneState:1;
-        unsigned int savedLeftSidePaneState:1;
         unsigned int findPaneState:1;
         unsigned int caseInsensitiveSearch:1;
         unsigned int wholeWordSearch:1;

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2026-12-03 16:53:27 UTC (rev 
16817)
+++ trunk/SKMainWindowController_FullScreen.m   2026-12-04 16:51:49 UTC (rev 
16818)
@@ -109,7 +109,7 @@
         mwcFlags.thumbnailsUpdatedDuringPresentaton = 1;
     }
     
-    mwcFlags.savedLeftSidePaneState = [self leftSidePaneState];
+    [sideWindow setSavedPaneState:[self leftSidePaneState]];
     [self setLeftSidePaneState:SKSidePaneStateThumbnail];
     [sideWindow makeFirstResponder:leftSideController.thumbnailTableView];
     [sideWindow attachToWindow:[self window]];
@@ -132,7 +132,7 @@
         
         [leftSideController.view 
addSubviewWithConstraints:leftSideController.sideView];
         
-        [self setLeftSidePaneState:mwcFlags.savedLeftSidePaneState];
+        [self setLeftSidePaneState:[sideWindow savedPaneState]];
         
         sideWindow = nil;
     }

Modified: trunk/SKSideWindow.h
===================================================================
--- trunk/SKSideWindow.h        2026-12-03 16:53:27 UTC (rev 16817)
+++ trunk/SKSideWindow.h        2026-12-04 16:51:49 UTC (rev 16818)
@@ -43,6 +43,7 @@
 @interface SKSideWindow : NSWindow {
     NSView *mainContentView;
     BOOL resizing;
+    BOOL savedPaneState;
 }
 
 - (instancetype)initWithView:(NSView *)view;
@@ -50,6 +51,8 @@
 - (void)remove;
 - (void)resizeWithEvent:(NSEvent *)theEvent;
 
+@property (nonatomic) BOOL savedPaneState;
+
 @end
 
 

Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m        2026-12-03 16:53:27 UTC (rev 16817)
+++ trunk/SKSideWindow.m        2026-12-04 16:51:49 UTC (rev 16818)
@@ -60,6 +60,8 @@
 
 @implementation SKSideWindow
 
+@synthesize savedPaneState;
+
 - (void)contentViewFrameChanged:(NSNotification *)notification {
     NSVisualEffectView *contentView = (NSVisualEffectView *)[self contentView];
     NSImage *mask = [NSImage imageWithSize:[contentView bounds].size 
drawingHandler:^(NSRect r){

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