mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
refactor: set detail directly instead of reset selected changes
This commit is contained in:
parent
fe0e969f0d
commit
2e433aa278
1 changed files with 4 additions and 4 deletions
|
@ -223,10 +223,10 @@ namespace SourceGit.ViewModels
|
||||||
// Just force refresh selected changes.
|
// Just force refresh selected changes.
|
||||||
Dispatcher.UIThread.Invoke(() =>
|
Dispatcher.UIThread.Invoke(() =>
|
||||||
{
|
{
|
||||||
if (_selectedUnstaged.Count > 0)
|
if (_selectedUnstaged.Count == 1)
|
||||||
SelectedUnstaged = new List<Models.Change>(_selectedUnstaged);
|
SetDetail(_selectedUnstaged[0]);
|
||||||
else if (_selectedStaged.Count > 0)
|
else if (_selectedStaged.Count == 1)
|
||||||
SelectedStaged = new List<Models.Change>(_selectedStaged);
|
SetDetail(_selectedStaged[0]);
|
||||||
});
|
});
|
||||||
|
|
||||||
return _cached.Find(x => x.IsConflit) != null;
|
return _cached.Find(x => x.IsConflit) != null;
|
||||||
|
|
Loading…
Reference in a new issue