PrefencesWindow: Add a reset icon to the path view

This allows you to remove a custom executable
This commit is contained in:
Pieter de Bie
2008-11-01 16:18:06 +01:00
parent 5a8ddeb096
commit 23f1672831
3 changed files with 117 additions and 37542 deletions
+111 -37542
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -25,5 +25,6 @@
- (IBAction) checkGitValidity: sender;
- (void)pathCell:(NSPathCell *)pathCell willDisplayOpenPanel:(NSOpenPanel *)openPanel;
- (IBAction) showHideAllFiles: sender;
- (IBAction) resetGitPath: sender;
@end
+5
View File
@@ -30,6 +30,11 @@
//[badGitPathIcon setHidden:[PBGitRepository validateGit:[[NSValueTransformer valueTransformerForName:@"PBNSURLPathUserDefaultsTransfomer"] reverseTransformedValue:[gitPathController URL]]]];
}
- (IBAction) resetGitPath: sender
{
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"gitExecutable"];
}
- (void)pathCell:(NSPathCell *)pathCell willDisplayOpenPanel:(NSOpenPanel *)openPanel
{
[openPanel setCanChooseDirectories:NO];