Did some small fixes, added connection timeout check, improved ux

This commit is contained in:
Marcel Baumgartner
2023-08-02 03:06:54 +02:00
parent ecda2ec6d1
commit 600bec3417
11 changed files with 170 additions and 87 deletions

View File

@@ -22,6 +22,7 @@
@inject IpBanService IpBanService
@inject DynamicBackgroundService DynamicBackgroundService
@inject KeyListenerService KeyListenerService
@inject ConfigService ConfigService
@{
var uri = new Uri(NavigationManager.Uri);
@@ -245,6 +246,13 @@
RunDelayedMenu(1);
RunDelayedMenu(3);
RunDelayedMenu(5);
if (ConfigService.Get().Moonlight.EnableLatencyCheck)
{
await JsRuntime.InvokeVoidAsync("moonlight.loading.checkConnection",
ConfigService.Get().Moonlight.AppUrl,
ConfigService.Get().Moonlight.LatencyCheckThreshold);
}
}
catch (Exception)
{