mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix: SelectedUnstaged
and SelectedStaged
should always be re-calculated (#328)
This commit is contained in:
parent
f41f8266d2
commit
e50db02ea8
1 changed files with 6 additions and 4 deletions
|
@ -278,12 +278,14 @@ namespace SourceGit.ViewModels
|
|||
_isLoadingData = true;
|
||||
Unstaged = unstaged;
|
||||
Staged = staged;
|
||||
SelectedUnstaged = selectedUnstaged;
|
||||
SelectedStaged = selectedStaged;
|
||||
_isLoadingData = false;
|
||||
|
||||
if (selectedUnstaged.Count > 0)
|
||||
SelectedUnstaged = selectedUnstaged;
|
||||
else if (selectedStaged.Count > 0)
|
||||
SelectedStaged = selectedStaged;
|
||||
if (selectedUnstaged.Count == 1)
|
||||
SetDetail(selectedUnstaged[0]);
|
||||
else if (selectedStaged.Count == 1)
|
||||
SetDetail(selectedStaged[0]);
|
||||
else
|
||||
SetDetail(null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue