Permalink
Browse files

Refactoring

  • Loading branch information...
1 parent 767a3a8 commit a3e50cbe9b522e73b8a5db03d426b9f057ec7b1b @psychs committed Jul 30, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −1 Classes/Dialogs/Preferences/PreferencesController.m
  2. +0 −1 Classes/Preferences/Preferences.m
@@ -539,7 +539,7 @@ - (void)windowWillClose:(NSNotification *)note
[self.window endEditingFor:nil];
[Preferences cleanUpWords];
- [[NSUserDefaults standardUserDefaults] synchronize];
+ [Preferences sync];
if ([delegate respondsToSelector:@selector(preferencesDialogWillClose:)]) {
[delegate preferencesDialogWillClose:self];
@@ -335,7 +335,6 @@ + (void)setPongInterval:(int)value
{
NSUserDefaults* ud = [NSUserDefaults standardUserDefaults];
[ud setInteger:value forKey:@"Preferences.Advanced.pongInterval"];
- [ud synchronize];
}
#pragma mark -

0 comments on commit a3e50cb

Please sign in to comment.