Revision: 14113
          http://sourceforge.net/p/skim-app/code/14113
Author:   hofman
Date:     2024-03-16 17:46:08 +0000 (Sat, 16 Mar 2024)
Log Message:
-----------
Move to normal window level while editing presentation srttings in presentation 
mode, to allow any warning alerts to be visible

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

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2024-03-16 17:38:32 UTC (rev 
14112)
+++ trunk/SKMainWindowController_Actions.m      2024-03-16 17:46:08 UTC (rev 
14113)
@@ -962,9 +962,19 @@
 }
 
 - (IBAction)chooseTransition:(id)sender {
+    NSWindowLevel level = NSNormalWindowLevel;
+    if (interactionMode == SKPresentationMode) {
+        level = [[self window] level];
+        if (level > NSNormalWindowLevel)
+            [[self window] setLevel:NSNormalWindowLevel];
+    }
+    
     SKPresentationOptionsSheetController *presentationSheetController = 
[[SKPresentationOptionsSheetController alloc] initForController:self];
     
-    [presentationSheetController beginSheetModalForWindow:[self window] 
completionHandler:NULL];
+    [presentationSheetController beginSheetModalForWindow:[self window] 
completionHandler:^(NSModalResponse response){
+        if (level > NSNormalWindowLevel)
+            [[self window] setLevel:level];
+    }];
 }
 
 - (IBAction)toggleCaseInsensitiveSearch:(id)sender {

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