mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Make “Restore Session” default for session restore dialog
Since disabling session restore will discard user data, it should not be default.
This commit is contained in:
@@ -242,8 +242,8 @@ BOOL HasDocumentWindow (NSArray* windows)
|
||||
|
||||
if(promptUser)
|
||||
{
|
||||
NSInteger choice = NSRunAlertPanel(@"Disable Session Restore?", @"%@", @"Disable", @"Restore Documents", nil, promptUser);
|
||||
if(choice == NSAlertDefaultReturn) // "Disable"
|
||||
NSInteger choice = NSRunAlertPanel(@"Disable Session Restore?", @"%@", @"Restore Documents", @"Disable", nil, promptUser);
|
||||
if(choice == NSAlertAlternateReturn) // "Disable"
|
||||
restoreSession = NO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user