mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 03:12:21 +08:00
enhance: add a button to clear git.http.proxy configuration
This commit is contained in:
@@ -37,8 +37,8 @@ namespace SourceGit.ViewModels
|
||||
|
||||
public string HttpProxy
|
||||
{
|
||||
get;
|
||||
set;
|
||||
get => _httpProxy;
|
||||
set => SetProperty(ref _httpProxy, value);
|
||||
}
|
||||
|
||||
public RepositoryConfigure(Repository repo)
|
||||
@@ -60,6 +60,11 @@ namespace SourceGit.ViewModels
|
||||
HttpProxy = proxy;
|
||||
}
|
||||
|
||||
public void ClearHttpProxy()
|
||||
{
|
||||
HttpProxy = string.Empty;
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
SetIfChanged("user.name", UserName);
|
||||
@@ -90,5 +95,6 @@ namespace SourceGit.ViewModels
|
||||
|
||||
private readonly Repository _repo = null;
|
||||
private readonly Dictionary<string, string> _cached = null;
|
||||
private string _httpProxy;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user