From 22288c2816f39348316a961806dc41bbe0ab6822 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 08 一月 2024 09:40:01 +0800 Subject: [PATCH] V2.4.3 bug fixed --- HDL_ON/Common/ApiUtlis.cs | 43 ++++++++++++++++++++++++++++++++++--------- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs index ec8dcc4..094a6e3 100644 --- a/HDL_ON/Common/ApiUtlis.cs +++ b/HDL_ON/Common/ApiUtlis.cs @@ -106,8 +106,16 @@ { if (waitPage != null) { - waitPage.RemoveFromParent(); - waitPage = null; + Application.RunOnMainThread(() => + { + try + { + waitPage.Hide(); + waitPage.RemoveFromParent(); + waitPage = null; + } + catch { } + }); } MainPage.Log($"鍒锋柊token澶辫触"); return; @@ -119,8 +127,16 @@ { if (waitPage != null) { - waitPage.RemoveFromParent(); - waitPage = null; + Application.RunOnMainThread(() => + { + try + { + waitPage.Hide(); + waitPage.RemoveFromParent(); + waitPage = null; + } + catch { } + }); } MainPage.Log($"鍒锋柊浣忓畢淇℃伅澶辫触"); return; @@ -132,8 +148,16 @@ { if (waitPage != null) { - waitPage.RemoveFromParent(); - waitPage = null; + Application.RunOnMainThread(() => + { + try + { + waitPage.Hide(); + waitPage.RemoveFromParent(); + waitPage = null; + } + catch { } + }); } MainPage.Log($"鍒锋柊涓汉淇℃伅澶辫触"); return; @@ -511,11 +535,12 @@ //======================瀹夐槻==================== GetSecurityList(); + + //===================璇诲彇閫昏緫鍒楄〃==================== + Logic.LogicList.Clear();//涓婚〉涓嬫媺寮哄埗鍒锋柊鑷姩鍖栧垪琛� + MainView.GetLogicList();//璇诲彇鑷姩鍖栧垪琛� }) { IsBackground = true }.Start(); - - //===================璇诲彇閫昏緫鍒楄〃========================== - Logic.LogicList.Clear();//涓婚〉涓嬫媺寮哄埗鍒锋柊鑷姩鍖栧垪琛� //======================娉ㄥ唽鎺ㄩ��==================== httpRequest.RegisteredPush(); -- Gitblit v1.8.0