Skip to content

Commit e0a3422

Browse files
committed
Bugfix: Index not refreshing on manual refresh
The window controller should be calling the content controller's refresh and not the repository's.
1 parent ef26909 commit e0a3422

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

PBGitWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ - (IBAction) cloneTo:(id)sender
153153

154154
- (IBAction) refresh:(id)sender
155155
{
156-
[repository forceUpdateRevisions];
156+
[contentController refresh:self];
157157
}
158158

159159
- (void) updateStatus

PBViewController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
- (void) removeView;
2727
- (void) updateView;
2828
- (NSResponder *)firstResponder;
29+
- (IBAction) refresh:(id)sender;
2930

3031
@end

PBViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ - (void) updateView
4343
{
4444
}
4545

46+
- (IBAction) refresh: sender
47+
{
48+
}
49+
4650
- (NSResponder *)firstResponder;
4751
{
4852
return nil;

0 commit comments

Comments
 (0)