Fixed error loop for fileaccess providers not supporting the launch url
This commit is contained in:
@@ -63,6 +63,8 @@
|
|||||||
private int Port;
|
private int Port;
|
||||||
|
|
||||||
protected override async Task OnParametersSetAsync()
|
protected override async Task OnParametersSetAsync()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Uri uri = new Uri(await Access.GetLaunchUrl());
|
Uri uri = new Uri(await Access.GetLaunchUrl());
|
||||||
|
|
||||||
@@ -70,6 +72,13 @@
|
|||||||
Port = uri.Port;
|
Port = uri.Port;
|
||||||
Username = uri.UserInfo.Split(':')[0];
|
Username = uri.UserInfo.Split(':')[0];
|
||||||
}
|
}
|
||||||
|
catch (NotImplementedException)
|
||||||
|
{
|
||||||
|
Host = "N/A";
|
||||||
|
Port = -1;
|
||||||
|
Username = "N/A";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public async Task Show()
|
public async Task Show()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user