File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,11 @@ public void Select(IList commits)
153153 else if ( commits . Count == 1 )
154154 {
155155 var commit = commits [ 0 ] as Models . Commit ;
156- _repo . SearchResultSelectedCommit = commit ;
156+
157+ if ( _repo . SearchResultSelectedCommit == null || _repo . SearchResultSelectedCommit . SHA != commit . SHA )
158+ {
159+ _repo . SearchResultSelectedCommit = _repo . SearchedCommits . Find ( x => x . SHA == commit . SHA ) ;
160+ }
157161
158162 AutoSelectedCommit = commit ;
159163 NavigationId = _navigationId + 1 ;
Original file line number Diff line number Diff line change 460460 <Setter Property =" Padding" Value =" 0" />
461461 <Setter Property =" Height" Value =" 50" />
462462 </Style >
463- <Style Selector =" ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter" >
464- <Setter Property =" Background" Value =" Transparent" />
465- </Style >
466- <Style Selector =" ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter" >
467- <Setter Property =" Background" Value =" {DynamicResource Brush.AccentHovered}" />
468- </Style >
469463 </ListBox .Styles>
470464
471465 <ListBox .ItemsPanel>
You can’t perform that action at this time.
0 commit comments