mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Code for saving when closing prefs window is no longer a delegate method.
This commit is contained in:
@@ -77,9 +77,7 @@
|
||||
fDefaults = [NSUserDefaults standardUserDefaults];
|
||||
fHandle = handle;
|
||||
|
||||
NSWindow * window = [self window];
|
||||
[window setDelegate: window];
|
||||
[window update]; //make sure nib is loaded right away
|
||||
[[self window] update]; //make sure nib is loaded right away
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -33,9 +33,10 @@
|
||||
[self close];
|
||||
}
|
||||
|
||||
- (void) windowWillClose: (NSNotification *) notification
|
||||
- (void) close
|
||||
{
|
||||
[self makeFirstResponder: nil]; //essentially saves changes on window close
|
||||
[super close];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user