mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add on window selection refresh.
The changes in PBViewController is only there to supress a compiler warning.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#import "PBGitWindowController.h"
|
||||
#import "PBGitHistoryController.h"
|
||||
#import "PBGitCommitController.h"
|
||||
#import "PBGitDefaults.h"
|
||||
|
||||
@implementation PBGitWindowController
|
||||
|
||||
@@ -137,6 +138,12 @@
|
||||
[[NSAlert alertWithError:error] beginSheetModalForWindow: [self window] modalDelegate:self didEndSelector:nil contextInfo:nil];
|
||||
}
|
||||
|
||||
- (void)windowDidBecomeKey:(NSNotification *)notification
|
||||
{
|
||||
if (self.viewController && [PBGitDefaults refreshAutomatically]) {
|
||||
[(PBViewController *)self.viewController refresh:nil];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Toolbar Delegates
|
||||
|
||||
@@ -25,4 +25,5 @@
|
||||
- (void) updateView;
|
||||
- (NSResponder *)firstResponder;
|
||||
|
||||
- (IBAction) refresh:(id)sender;
|
||||
@end
|
||||
|
||||
@@ -45,4 +45,9 @@
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (IBAction) refresh:(id)sender
|
||||
{
|
||||
return;
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user