浏览代码

[macOS] Enabled secure restorable state.

(cherry picked from commit 84380a94f776c8c1e7786d2eb3fb811789f42639)
bruvzg 1 年之前
父节点
当前提交
cc4a47251c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      platform/osx/os_osx.mm

+ 4 - 0
platform/osx/os_osx.mm

@@ -168,6 +168,10 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) {
 
 @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.