From 943e8bcefbb6dcffa8ab0651f1be432629013a50 Mon Sep 17 00:00:00 2001 From: BookerLiu Date: Wed, 19 Apr 2023 15:44:50 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=89=8B?= =?UTF-8?q?=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWindow.xaml.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 904f657..8678274 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -1028,13 +1028,18 @@ namespace GeekDesk #region 新手引导 private void Guide() { - if (CheckShouldShowApp()) + try { - ShowApp(); + //防止影响主程序进程 + if (CheckShouldShowApp()) + { + ShowApp(); + } + GrayBorder.Visibility = Visibility.Visible; + GuideSwitch(0); + GuideCard.Visibility = Visibility.Visible; } - GrayBorder.Visibility = Visibility.Visible; - GuideSwitch(0); - GuideCard.Visibility = Visibility.Visible; + catch (Exception) { } } private void GuideSwitch(int index)