cocoa: squelch secure restorable state warning on macOS 14
This commit is contained in:
parent
0bc290eb2c
commit
144479d8e4
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue