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