Skip to content

Commit 6a2389f

Browse files
committed
Fix test project build issue
1 parent ed16d34 commit 6a2389f

File tree

1 file changed

+1
-3
lines changed
  • Flow.Launcher.Infrastructure/Http

1 file changed

+1
-3
lines changed

Flow.Launcher.Infrastructure/Http/Http.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public static class Http
1818

1919
private static HttpClient client = new HttpClient();
2020

21-
private static IPublicAPI API { get; set; } = Ioc.Default.GetRequiredService<IPublicAPI>();
22-
2321
static Http()
2422
{
2523
// need to be added so it would work on a win10 machine
@@ -79,7 +77,7 @@ var userName when string.IsNullOrEmpty(userName) =>
7977
}
8078
catch (UriFormatException e)
8179
{
82-
API.ShowMsg("Please try again", "Unable to parse Http Proxy");
80+
Ioc.Default.GetRequiredService<IPublicAPI>().ShowMsg("Please try again", "Unable to parse Http Proxy");
8381
Log.Exception("Flow.Launcher.Infrastructure.Http", "Unable to parse Uri", e);
8482
}
8583
}

0 commit comments

Comments
 (0)