Add on window selection refresh.

The changes in PBViewController is only there to
supress a compiler warning.
This commit is contained in:
Aron Cedercrantz
2009-07-17 22:14:59 +02:00
parent c8a7e5bfe9
commit 4e0871c2e2
3 changed files with 13 additions and 0 deletions
+7
View File
@@ -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