修复调用主窗口关闭的bug
This commit is contained in:
@@ -112,7 +112,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
|
|||||||
{
|
{
|
||||||
HandyControl.Controls.Growl.WarningGlobal("程序启动失败(文件路径不存在或已删除)!");
|
HandyControl.Controls.Growl.WarningGlobal("程序启动失败(文件路径不存在或已删除)!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Process p = new Process();
|
Process p = new Process();
|
||||||
p.StartInfo.FileName = icon.Path;
|
p.StartInfo.FileName = icon.Path;
|
||||||
@@ -127,13 +127,15 @@ namespace GeekDesk.Control.UserControls.PannelCard
|
|||||||
p.StartInfo.ErrorDialog = false;
|
p.StartInfo.ErrorDialog = false;
|
||||||
if (appData.AppConfig.AppHideType == AppHideType.START_EXE)
|
if (appData.AppConfig.AppHideType == AppHideType.START_EXE)
|
||||||
{
|
{
|
||||||
this.Visibility = Visibility.Collapsed;
|
Window parentWin = Window.GetWindow(this);
|
||||||
|
parentWin.Visibility = Visibility.Collapsed;
|
||||||
}
|
}
|
||||||
break;// c#好像不能case穿透
|
break;// c#好像不能case穿透
|
||||||
case IconStartType.DEFAULT_STARTUP:
|
case IconStartType.DEFAULT_STARTUP:
|
||||||
if (appData.AppConfig.AppHideType == AppHideType.START_EXE)
|
if (appData.AppConfig.AppHideType == AppHideType.START_EXE)
|
||||||
{
|
{
|
||||||
this.Visibility = Visibility.Collapsed;
|
Window parentWin = Window.GetWindow(this);
|
||||||
|
parentWin.Visibility = Visibility.Collapsed;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IconStartType.SHOW_IN_EXPLORE:
|
case IconStartType.SHOW_IN_EXPLORE:
|
||||||
|
|||||||
Reference in New Issue
Block a user