Skip to content

Commit 68e96f4

Browse files
authored
fix: validate result not update #1052 (#1053)
1 parent 25e6e26 commit 68e96f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ViewModels/Pull.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public List<Models.Branch> RemoteBranches
3535
public Models.Branch SelectedBranch
3636
{
3737
get => _selectedBranch;
38-
set => SetProperty(ref _selectedBranch, value);
38+
set => SetProperty(ref _selectedBranch, value, true);
3939
}
4040

4141
public Models.DealWithLocalChanges PreAction

src/ViewModels/Push.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Models.Branch SelectedLocalBranch
1818
get => _selectedLocalBranch;
1919
set
2020
{
21-
if (SetProperty(ref _selectedLocalBranch, value))
21+
if (SetProperty(ref _selectedLocalBranch, value, true))
2222
AutoSelectBranchByRemote();
2323
}
2424
}
@@ -39,7 +39,7 @@ public Models.Remote SelectedRemote
3939
get => _selectedRemote;
4040
set
4141
{
42-
if (SetProperty(ref _selectedRemote, value))
42+
if (SetProperty(ref _selectedRemote, value, true))
4343
AutoSelectBranchByRemote();
4444
}
4545
}
@@ -56,7 +56,7 @@ public Models.Branch SelectedRemoteBranch
5656
get => _selectedRemoteBranch;
5757
set
5858
{
59-
if (SetProperty(ref _selectedRemoteBranch, value))
59+
if (SetProperty(ref _selectedRemoteBranch, value, true))
6060
IsSetTrackOptionVisible = value != null && _selectedLocalBranch.Upstream != value.FullName;
6161
}
6262
}

0 commit comments

Comments
 (0)