增加判空处理, 兼容旧版本数据
This commit is contained in:
@@ -123,15 +123,15 @@ namespace GeekDesk.Control.UserControls.PannelCard
|
|||||||
|
|
||||||
string startArg = icon.StartArg;
|
string startArg = icon.StartArg;
|
||||||
|
|
||||||
if (Constants.SYSTEM_ICONS.ContainsKey(startArg))
|
if (startArg!=null && Constants.SYSTEM_ICONS.ContainsKey(startArg))
|
||||||
{
|
{
|
||||||
StartSystemApp(startArg, type);
|
StartSystemApp(startArg, type);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
p.StartInfo.FileName = icon.Path;
|
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)
|
if (icon.IconType == IconType.OTHER)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user