修复打开项目程序崩溃的bug

This commit is contained in:
Demo_Liu
2021-09-11 21:54:54 +08:00
parent af8e0b7df2
commit 7bfe14c211

View File

@@ -75,7 +75,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
/// <param name="e"></param> /// <param name="e"></param>
private void IconClick(object sender, MouseButtonEventArgs e) private void IconClick(object sender, MouseButtonEventArgs e)
{ {
IconInfo icon = (IconInfo)((StackPanel)sender).Tag; IconInfo icon = (IconInfo)((SimpleStackPanel)sender).Tag;
if (icon.AdminStartUp) if (icon.AdminStartUp)
{ {
StartIconApp(icon, IconStartType.ADMIN_STARTUP); StartIconApp(icon, IconStartType.ADMIN_STARTUP);