Browse Source

Merge pull request #88050 from bruvzg/sec_state

[macOS] Enabled secure restorable state.
Rémi Verschelde 1 year ago
parent
commit
08eaeff640
1 changed files with 4 additions and 0 deletions
  1. 4 0
      platform/macos/godot_application_delegate.mm

+ 4 - 0
platform/macos/godot_application_delegate.mm

@@ -35,6 +35,10 @@
 
 
 @implementation GodotApplicationDelegate
 @implementation GodotApplicationDelegate
 
 
+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
+	return YES;
+}
+
 - (void)forceUnbundledWindowActivationHackStep1 {
 - (void)forceUnbundledWindowActivationHackStep1 {
 	// Step 1: Switch focus to macOS SystemUIServer process.
 	// Step 1: Switch focus to macOS SystemUIServer process.
 	// Required to perform step 2, TransformProcessType will fail if app is already the in focus.
 	// Required to perform step 2, TransformProcessType will fail if app is already the in focus.