Revision: 14184
          http://sourceforge.net/p/skim-app/code/14184
Author:   hofman
Date:     2024-04-05 14:51:24 +0000 (Fri, 05 Apr 2024)
Log Message:
-----------
Delay entering presentation mode after exiting full screen. Apparently, the 
full screen exit is not fully finished. and a call to moveTabToNewWindow: can 
lead to a crash at this point.

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2024-04-04 23:02:15 UTC (rev 
14183)
+++ trunk/SKMainWindowController_FullScreen.m   2024-04-05 14:51:24 UTC (rev 
14184)
@@ -763,7 +763,7 @@
     mwcFlags.isSwitchingFullScreen = 0;
     if (mwcFlags.wantsPresentation) {
         mwcFlags.wantsPresentation = 0;
-        [self enterPresentation];
+        dispatch_async(dispatch_get_main_queue(), ^{ [self enterPresentation]; 
});
     } else {
         [touchBarController interactionModeChanged];
     }

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2024-04-04 23:02:15 UTC (rev 14183)
+++ trunk/SKPDFSynchronizer.m   2024-04-05 14:51:24 UTC (rev 14184)
@@ -39,8 +39,6 @@
 #import "SKPDFSynchronizer.h"
 #import "SKSyncTeXParser.h"
 #import "SKPDFSyncParser.h"
-#import "NSCharacterSet_SKExtensions.h"
-#import "NSFileManager_SKExtensions.h"
 
 static NSArray *SKPDFSynchronizerTexExtensions = nil;
 
@@ -56,7 +54,7 @@
 
 + (void)initialize {
     SKINITIALIZE;
-    SKPDFSynchronizerTexExtensions = [[NSArray alloc] initWithObjects:@"tex", 
@"ltx", @"latex", @"ctx", @"lyx", @"rnw", nil];
+    SKPDFSynchronizerTexExtensions = @[@"tex", @"ltx", @"latex", @"ctx", 
@"lyx", @"rnw"];
 }
 
 - (instancetype)init {

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