mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
enhance: prevent property changed event if it is unchanged
This commit is contained in:
parent
aae1c41dcd
commit
85ce2f9cab
2 changed files with 27 additions and 31 deletions
|
@ -137,7 +137,8 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
else
|
||||
{
|
||||
SelectedStaged = [];
|
||||
if (_selectedStaged != null && _selectedStaged.Count > 0)
|
||||
SelectedStaged = [];
|
||||
|
||||
if (value.Count == 1)
|
||||
SetDetail(value[0]);
|
||||
|
@ -162,7 +163,8 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
else
|
||||
{
|
||||
SelectedUnstaged = [];
|
||||
if (_selectedUnstaged != null && _selectedUnstaged.Count > 0)
|
||||
SelectedUnstaged = [];
|
||||
|
||||
if (value.Count == 1)
|
||||
SetDetail(value[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue