Skip to content

Commit 1820973

Browse files
committed
Fixed automatic refresh (broken by merge).
1 parent 3c9cb12 commit 1820973

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

PBGitWindowController.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
IBOutlet NSTextField *statusField;
2626
IBOutlet NSProgressIndicator *progressIndicator;
2727

28-
PBViewController* viewController;
29-
3028
IBOutlet NSToolbarItem *terminalItem;
3129
IBOutlet NSToolbarItem *finderItem;
3230
}

PBGitWindowController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ - (void)showErrorSheet:(NSError *)error
136136

137137
- (void)windowDidBecomeKey:(NSNotification *)notification
138138
{
139-
if (self.viewController && [PBGitDefaults refreshAutomatically]) {
140-
[(PBViewController *)self.viewController refresh:nil];
139+
if ([PBGitDefaults refreshAutomatically]) {
140+
[contentController refresh:nil];
141141
}
142142
}
143143

0 commit comments

Comments
 (0)