File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 9
9
#import " PBGitWindowController.h"
10
10
#import " PBGitHistoryController.h"
11
11
#import " PBGitCommitController.h"
12
+ #import " PBGitDefaults.h"
12
13
13
14
@implementation PBGitWindowController
14
15
@@ -137,6 +138,12 @@ - (void)showErrorSheet:(NSError *)error
137
138
[[NSAlert alertWithError: error] beginSheetModalForWindow: [self window ] modalDelegate: self didEndSelector: nil contextInfo: nil ];
138
139
}
139
140
141
+ - (void )windowDidBecomeKey : (NSNotification *)notification
142
+ {
143
+ if (self.viewController && [PBGitDefaults refreshAutomatically ]) {
144
+ [(PBViewController *)self .viewController refresh: nil ];
145
+ }
146
+ }
140
147
141
148
#pragma mark -
142
149
#pragma mark Toolbar Delegates
Original file line number Diff line number Diff line change 25
25
- (void ) updateView ;
26
26
- (NSResponder *)firstResponder ;
27
27
28
+ - (IBAction ) refresh : (id )sender ;
28
29
@end
Original file line number Diff line number Diff line change @@ -45,4 +45,9 @@ - (NSResponder *)firstResponder;
45
45
{
46
46
return nil ;
47
47
}
48
+
49
+ - (IBAction ) refresh : (id )sender
50
+ {
51
+ return ;
52
+ }
48
53
@end
You can’t perform that action at this time.
0 commit comments