appInfo.TryGetValue("IconPath", out appIconPath);\r
\r
DebuggingUtils.Dbg("AppID: " + appShortcutInfo.AppID + ", Label : " + appLabel + " IconPath : " + appIconPath);\r
+ Random random = new Random();\r
var defaultStateDescription = new StateDescription()\r
{\r
Label = appLabel,\r
- IconPath = appIconPath,\r
+ IconPath = appIconPath??icons[random.Next(0, 6)], //IconPath = (resul5t[2] == null) ? "AppIcon.png" : result[2],\r
Action = new AppControlAction\r
{\r
AppID = appShortcutInfo.AppID,\r
}\r
};\r
\r
- if (defaultStateDescription.IconPath == null || defaultStateDescription.IconPath.Length == 0)\r
- {\r
- Random random = new Random();\r
- defaultStateDescription.IconPath = icons[random.Next(0, 6)]; //IconPath = (resul5t[2] == null) ? "AppIcon.png" : result[2],\r
- }\r
-\r
appShortcutInfo.StateDescriptions.Add("default", defaultStateDescription);\r
appShortcutInfo.CurrentStateDescription = defaultStateDescription;\r
}\r