From ac5f3c32c95d795d9f286a032946f3fa3ba5150e Mon Sep 17 00:00:00 2001 From: Demo_Liu Date: Tue, 13 Jul 2021 20:03:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E7=94=A8=E4=B8=BB?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=85=B3=E9=97=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control/UserControls/PannelCard/RightCardControl.xaml.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml.cs b/Control/UserControls/PannelCard/RightCardControl.xaml.cs index 39aa3fe..c5ba0ff 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml.cs +++ b/Control/UserControls/PannelCard/RightCardControl.xaml.cs @@ -112,7 +112,7 @@ namespace GeekDesk.Control.UserControls.PannelCard { HandyControl.Controls.Growl.WarningGlobal("程序启动失败(文件路径不存在或已删除)!"); return; - } + } Process p = new Process(); p.StartInfo.FileName = icon.Path; @@ -127,13 +127,15 @@ namespace GeekDesk.Control.UserControls.PannelCard p.StartInfo.ErrorDialog = false; if (appData.AppConfig.AppHideType == AppHideType.START_EXE) { - this.Visibility = Visibility.Collapsed; + Window parentWin = Window.GetWindow(this); + parentWin.Visibility = Visibility.Collapsed; } break;// c#好像不能case穿透 case IconStartType.DEFAULT_STARTUP: if (appData.AppConfig.AppHideType == AppHideType.START_EXE) { - this.Visibility = Visibility.Collapsed; + Window parentWin = Window.GetWindow(this); + parentWin.Visibility = Visibility.Collapsed; } break; case IconStartType.SHOW_IN_EXPLORE: