mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
PrefencesWindow: Add a reset icon to the path view
This allows you to remove a custom executable
This commit is contained in:
+111
-37542
File diff suppressed because it is too large
Load Diff
@@ -25,5 +25,6 @@
|
||||
- (IBAction) checkGitValidity: sender;
|
||||
- (void)pathCell:(NSPathCell *)pathCell willDisplayOpenPanel:(NSOpenPanel *)openPanel;
|
||||
- (IBAction) showHideAllFiles: sender;
|
||||
- (IBAction) resetGitPath: sender;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user