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

@@ -64,11 +64,20 @@
protected override async Task OnParametersSetAsync() protected override async Task OnParametersSetAsync()
{ {
Uri uri = new Uri(await Access.GetLaunchUrl()); try
{
Host = uri.Host; Uri uri = new Uri(await Access.GetLaunchUrl());
Port = uri.Port;
Username = uri.UserInfo.Split(':')[0]; 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() public async Task Show()