fix: validate result not update #1052 (#1053)

This commit is contained in:
GadflyFang 2025-03-04 16:34:51 +08:00 committed by GitHub
parent 25e6e261a6
commit 68e96f428e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}
}