Cambio wait

This commit is contained in:
Samuele Locatelli
2024-02-26 18:52:59 +01:00
parent c375f61b94
commit 4454f5c64d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -225,6 +225,7 @@ namespace MP_TAB3.Components
}
isLoading = RecMSE == null;
isMobile = await JSRuntime.InvokeAsync<bool>("isDevice");
await Task.Delay(1);
}
protected override async Task OnInitializedAsync()
@@ -242,6 +243,7 @@ namespace MP_TAB3.Components
{
imgBasePath = $"{Environment.CurrentDirectory}/images/";
}
await Task.Delay(1);
}
protected override async Task OnParametersSetAsync()
+1 -1
View File
@@ -139,7 +139,7 @@ namespace MP_TAB3.Pages
setDefaults();
TDFeeder.dataPipe.EA_NewMessage += DataPipe_EA_NewMessage;
Random rnd = new Random();
await Task.Delay(rnd.Next(100, 200));
await Task.Delay(rnd.Next(1, 50));
SetupConf();
var LastOpenedPage = await MsgServ.LastOpenedPageGet();
var currMacc = await MsgServ.IdxMaccGet();