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 public Models.Branch SelectedBranch
{ {
get => _selectedBranch; get => _selectedBranch;
set => SetProperty(ref _selectedBranch, value); set => SetProperty(ref _selectedBranch, value, true);
} }
public Models.DealWithLocalChanges PreAction public Models.DealWithLocalChanges PreAction

View file

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