Prechádzať zdrojové kódy

cocoa: squelch secure restorable state warning on macOS 14

rdb 2 rokov pred
rodič
commit
144479d8e4

+ 5 - 0
panda/src/cocoadisplay/cocoaPandaAppDelegate.mm

@@ -26,6 +26,11 @@
   return self;
 }
 
+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
+  // Squelches an annoying warning.
+  return YES;
+}
+
 - (void)applicationDidFinishLaunching:(NSNotification *)notification {
   // This only seems to work when called here.
   [NSApp activateIgnoringOtherApps:YES];