Fix secure restore state runtime warning from cocoa being printed to stderr

This commit is contained in:
Kovid Goyal 2023-10-03 11:23:56 +05:30
parent 450aa59303
commit 4c37fff496
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -308,6 +308,10 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
return NSTerminateCancel;
}
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
return YES;
}
static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag