@@ -167,36 +167,6 @@ - (IBAction)fontPropertiesChanged:(id)sender
167167 [[MMAppController sharedInstance ] refreshAllFonts ];
168168}
169169
170- -(IBAction )lastWindowClosedChanged : (id )sender
171- {
172- // Sanity checking for terminate when last window closed + not opening an untitled window.
173- // This results in a potentially awkward situation wehre MacVim will close itself since it
174- // doesn't have any window opened when launched.
175- // Note that the potentially bad behavior is already protected against for in applicationShouldTerminateAfterLastWindowClosed:,
176- // but this sanity checking is to make sure the user can see that in an explicit fashion.
177- NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults ];
178- if ([defaults integerForKey: MMLastWindowClosedBehaviorKey] == MMTerminateWhenLastWindowClosed) {
179- if ([defaults integerForKey: MMUntitledWindowKey] == MMUntitledWindowNever) {
180- [defaults setInteger: MMUntitledWindowOnOpen forKey: MMUntitledWindowKey];
181- }
182- }
183- }
184-
185- -(IBAction )openUntitledWindowChanged : (id )sender
186- {
187- // Sanity checking for terminate when last window closed + not opening an untitled window.
188- // This results in a potentially awkward situation wehre MacVim will close itself since it
189- // doesn't have any window opened when launched.
190- // Note that the potentially bad behavior is already protected against for in applicationShouldTerminateAfterLastWindowClosed:,
191- // but this sanity checking is to make sure the user can see that in an explicit fashion.
192- NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults ];
193- if ([defaults integerForKey: MMLastWindowClosedBehaviorKey] == MMTerminateWhenLastWindowClosed) {
194- if ([defaults integerForKey: MMUntitledWindowKey] == MMUntitledWindowNever) {
195- [defaults setInteger: MMHideWhenLastWindowClosed forKey: MMLastWindowClosedBehaviorKey];
196- }
197- }
198- }
199-
200170- (IBAction )smoothResizeChanged : (id )sender
201171{
202172 [[MMAppController sharedInstance ] refreshAllResizeConstraints ];
0 commit comments