소스 검색

[macOS] Enabled secure restorable state.

bruvzg 1 년 전
부모
커밋
84380a94f7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      platform/macos/godot_application_delegate.mm

+ 4 - 0
platform/macos/godot_application_delegate.mm

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