From 5ff3f04da62953f0f8a593e70fd55a01b84db405 Mon Sep 17 00:00:00 2001 From: liufei Date: Thu, 6 Jan 2022 19:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E7=A9=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86,=20=E5=85=BC=E5=AE=B9=E6=97=A7=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control/UserControls/PannelCard/RightCardControl.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml.cs b/Control/UserControls/PannelCard/RightCardControl.xaml.cs index d53f4d9..f6c780b 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml.cs +++ b/Control/UserControls/PannelCard/RightCardControl.xaml.cs @@ -123,15 +123,15 @@ namespace GeekDesk.Control.UserControls.PannelCard string startArg = icon.StartArg; - if (Constants.SYSTEM_ICONS.ContainsKey(startArg)) + if (startArg!=null && Constants.SYSTEM_ICONS.ContainsKey(startArg)) { StartSystemApp(startArg, type); } else { p.StartInfo.FileName = icon.Path; - if (!StringUtil.IsEmpty(icon.StartArg)) + if (!StringUtil.IsEmpty(startArg)) { - p.StartInfo.Arguments = icon.StartArg; + p.StartInfo.Arguments = startArg; } if (icon.IconType == IconType.OTHER) {