Revision: 15369
          http://sourceforge.net/p/skim-app/code/15369
Author:   hofman
Date:     2025-06-05 09:20:15 +0000 (Thu, 05 Jun 2025)
Log Message:
-----------
Do not show docked snapshot windows when reopening an open document

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2025-06-05 09:14:44 UTC (rev 15368)
+++ trunk/SKMainDocument.m      2025-06-05 09:20:15 UTC (rev 15369)
@@ -220,12 +220,15 @@
 }
 
 - (void)showWindows{
-    BOOL wasVisible = [[self mainWindowController] isWindowLoaded] && [[[self 
mainWindowController] window] isVisible];
-    
-    [super showWindows];
-    
-    if (wasVisible == NO)
+    if ([[self mainWindowController] isWindowLoaded] && [[[self 
mainWindowController] window] isVisible]) {
+        for (NSWindowController *wc in [self windowControllers]) {
+            if ([[wc window] isVisible])
+                [wc showWindow:nil];
+        }
+    } else {
+        [super showWindows];
         [[NSNotificationCenter defaultCenter] 
postNotificationName:SKDocumentDidShowNotification object:self];
+    }
 }
 
 - (void)removeWindowController:(NSWindowController *)windowController {

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