mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Sidebar: Handle selection changes
This commit is contained in:
@@ -69,6 +69,21 @@
|
||||
[sourceView selectRow:index byExtendingSelection:NO];
|
||||
}
|
||||
|
||||
#pragma mark NSOutlineView delegate methods
|
||||
|
||||
- (void)outlineViewSelectionDidChange:(NSNotification *)notification
|
||||
{
|
||||
NSInteger index = [sourceView selectedRow];
|
||||
PBSourceViewItem *item = [sourceView itemAtRow:index];
|
||||
|
||||
if ([item revSpecifier]) {
|
||||
[[repository windowController] showHistoryView:self];
|
||||
repository.currentBranch = [item revSpecifier];
|
||||
return;
|
||||
}
|
||||
|
||||
/* Handle Remotes etc */
|
||||
}
|
||||
|
||||
#pragma mark NSOutlineView delegate methods
|
||||
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item
|
||||
|
||||
Reference in New Issue
Block a user