From 4454f5c64d412cf6bf1eaee50279939482da28f9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 26 Feb 2024 18:52:59 +0100 Subject: [PATCH] Cambio wait --- MP-TAB3/Components/MachineBlock.razor.cs | 2 ++ MP-TAB3/Pages/StatusMap.razor.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MP-TAB3/Components/MachineBlock.razor.cs b/MP-TAB3/Components/MachineBlock.razor.cs index 3fd8d4cf..c2395ae0 100644 --- a/MP-TAB3/Components/MachineBlock.razor.cs +++ b/MP-TAB3/Components/MachineBlock.razor.cs @@ -225,6 +225,7 @@ namespace MP_TAB3.Components } isLoading = RecMSE == null; isMobile = await JSRuntime.InvokeAsync("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() diff --git a/MP-TAB3/Pages/StatusMap.razor.cs b/MP-TAB3/Pages/StatusMap.razor.cs index 0eb33177..f2b75bdb 100644 --- a/MP-TAB3/Pages/StatusMap.razor.cs +++ b/MP-TAB3/Pages/StatusMap.razor.cs @@ -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();