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
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;
}
}