Revision 74314fd6 pithos-macos/PithosPreferencesController.m
b/pithos-macos/PithosPreferencesController.m | ||
---|---|---|
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
- (void)windowWillClose:(NSNotification *)notification { |
74 |
[[self window] makeFirstResponder:nil]; |
|
75 |
[(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] authenticate]; |
|
74 |
[self authenticationApply:self]; |
|
76 | 75 |
} |
77 | 76 |
|
78 | 77 |
- (IBAction)toolbarItemSelected:(id)sender { |
... | ... | |
81 | 80 |
#pragma mark - |
82 | 81 |
#pragma Authentication |
83 | 82 |
|
83 |
- (IBAction)authenticationApply:(id)sender { |
|
84 |
[[self window] makeFirstResponder:nil]; |
|
85 |
[(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] authenticate]; |
|
86 |
} |
|
87 |
|
|
84 | 88 |
- (IBAction)authenticationLogin:(id)sender { |
85 | 89 |
NSProcessInfo *processInfo = [NSProcessInfo processInfo]; |
86 | 90 |
NSString *loginURL = [NSString stringWithFormat:@"%@?next=pithos://%@_%d", |
Also available in: Unified diff