Fixed error loop for fileaccess providers not supporting the launch url

This commit is contained in:
Marcel Baumgartner
2023-06-26 17:19:32 +02:00
parent a8bd1193ce
commit 7feccc8d9f

View File

@@ -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()
{ {