fix<Fetch>: start fetch from remote's context menu should only fetch selected remote

This commit is contained in:
leo 2024-02-26 09:38:25 +08:00
parent 787fe4ad70
commit f4c82ff749

View file

@ -24,7 +24,7 @@ namespace SourceGit.ViewModels {
public Fetch(Repository repo, Models.Remote preferedRemote = null) { public Fetch(Repository repo, Models.Remote preferedRemote = null) {
_repo = repo; _repo = repo;
_fetchAllRemotes = true; _fetchAllRemotes = preferedRemote == null;
SelectedRemote = preferedRemote != null ? preferedRemote : _repo.Remotes[0]; SelectedRemote = preferedRemote != null ? preferedRemote : _repo.Remotes[0];
Prune = true; Prune = true;
View = new Views.Fetch() { DataContext = this }; View = new Views.Fetch() { DataContext = this };