feature<AutoFetch>: finish auto fetch remotes

This commit is contained in:
leo 2024-02-18 16:26:07 +08:00
parent b40ca42d73
commit 05c9d9be5b
6 changed files with 88 additions and 6 deletions

View file

@ -123,6 +123,7 @@ namespace SourceGit.ViewModels {
}
repo.Open();
Commands.AutoFetch.AddRepository(repo.FullPath);
if (page == null) {
if (ActivePage == null || ActivePage.Node.IsRepository) {
@ -146,6 +147,7 @@ namespace SourceGit.ViewModels {
var repo = Preference.FindRepository(page.Node.Id);
if (repo == null) return;
Commands.AutoFetch.RemoveRepository(repo.FullPath);
repo.Close();
}