mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
feature<AutoFetch>: finish auto fetch remotes
This commit is contained in:
parent
b40ca42d73
commit
05c9d9be5b
6 changed files with 88 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue