fix: validate result not update #1052

This commit is contained in:
Gadfly 2025-03-04 16:23:55 +08:00
parent b75676a7f8
commit c7b90ca4b3
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ namespace SourceGit.ViewModels
public Models.Branch SelectedBranch
{
get => _selectedBranch;
set => SetProperty(ref _selectedBranch, value);
set => SetProperty(ref _selectedBranch, value, true);
}
public Models.DealWithLocalChanges PreAction

View file

@ -18,7 +18,7 @@ namespace SourceGit.ViewModels
get => _selectedLocalBranch;
set
{
if (SetProperty(ref _selectedLocalBranch, value))
if (SetProperty(ref _selectedLocalBranch, value, true))
AutoSelectBranchByRemote();
}
}
@ -39,7 +39,7 @@ namespace SourceGit.ViewModels
get => _selectedRemote;
set
{
if (SetProperty(ref _selectedRemote, value))
if (SetProperty(ref _selectedRemote, value, true))
AutoSelectBranchByRemote();
}
}
@ -56,7 +56,7 @@ namespace SourceGit.ViewModels
get => _selectedRemoteBranch;
set
{
if (SetProperty(ref _selectedRemoteBranch, value))
if (SetProperty(ref _selectedRemoteBranch, value, true))
IsSetTrackOptionVisible = value != null && _selectedLocalBranch.Upstream != value.FullName;
}
}