update variable naming convention

This commit is contained in:
Jeremy Wu 2021-02-22 20:36:06 +11:00
parent 5f44663bd7
commit 9192ab7550
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ namespace Flow.Launcher.Infrastructure.Http
private static HttpClient client = new HttpClient();
public static IPublicAPI _api { get; set; }
public static IPublicAPI API { get; set; }
static Http()
{
@ -81,7 +81,7 @@ namespace Flow.Launcher.Infrastructure.Http
}
catch(UriFormatException e)
{
_api.ShowMsg("Please try again", "Unable to parse Http Proxy");
API.ShowMsg("Please try again", "Unable to parse Http Proxy");
Log.Exception("Flow.Launcher.Infrastructure.Http", "Unable to parse Uri", e);
}
}

View file

@ -71,7 +71,7 @@ namespace Flow.Launcher
_mainVM = new MainViewModel(_settings);
API = new PublicAPIInstance(_settingsVM, _mainVM, _alphabet);
Http._api = API;
Http.API = API;
Http.Proxy = _settings.Proxy;
await PluginManager.InitializePlugins(API);