From 02c2e26972736dfdfe703135879a11aa77c95070 Mon Sep 17 00:00:00 2001 From: cglcv Date: Sat, 18 Jun 2022 13:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=82=B9=E5=87=BB=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E7=9B=B4=E6=8E=A5=E9=97=AA=E9=80=80?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAsstGui/ViewModels/SettingsViewModel.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/MeoAsstGui/ViewModels/SettingsViewModel.cs b/src/MeoAsstGui/ViewModels/SettingsViewModel.cs index 37c360a47a..a7eb9e2a7b 100644 --- a/src/MeoAsstGui/ViewModels/SettingsViewModel.cs +++ b/src/MeoAsstGui/ViewModels/SettingsViewModel.cs @@ -1092,10 +1092,13 @@ namespace MeoAsstGui { if (!updateModle.CheckAndDownloadUpdate(true)) { - using (var toast = new ToastNotification("已是最新版本~")) + Execute.OnUIThread(() => { - toast.Show(); - } + using (var toast = new ToastNotification("已是最新版本~")) + { + toast.Show(); + } + }); } }); await task;