Browse Source

Mac: Don't prompt to reopen windows after crash.

We don't support state serialization / resume, so disable the prompt
that pops up asking if you want to reopen the windows.
J?rgen P. Tjern? 11 years ago
parent
commit
fc9e3a69b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/video/cocoa/SDL_cocoaevents.m

+ 1 - 0
src/video/cocoa/SDL_cocoaevents.m

@@ -282,6 +282,7 @@ Cocoa_RegisterApp(void)
         NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
             [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
             [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
+            [NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
             nil];
         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
         [appDefaults release];