Browse Source

Status=>Main界面subRecipeName展示不正确问题

jiangjy 2 weeks ago
parent
commit
abc97a6cd2
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Furnace/FurnaceUI/Views/Operations/StatusViewModel.cs

+ 6 - 1
Furnace/FurnaceUI/Views/Operations/StatusViewModel.cs

@@ -821,6 +821,11 @@ namespace FurnaceUI.Views.Operations
                     return string.Empty;
                 if (!IsPM1Process && !IsPM1PostProcess)
                     return string.Empty;
+
+                if (PM1IsExecuteSubRecipe && !string.IsNullOrEmpty(ProcessSubRecipe))
+                {
+                    return Path.GetFileName(ProcessSubRecipe);
+                }
                 //return PM1SelectedRecipeName.Substring("Furnace\\Process\\".Length);
                 return Path.GetFileName(PM1SelectedRecipeName);
             }
@@ -1604,7 +1609,7 @@ namespace FurnaceUI.Views.Operations
                     //{
                     //  var wm = IoC.Get<IWindowManager>();
                     var viewPMCommand = new PMCommandViewModel();
-                    (wm as WindowManager)?.ShowDialogWithTitle(viewPMCommand,this, null, "PM Command");
+                    (wm as WindowManager)?.ShowDialogWithTitle(viewPMCommand, this, null, "PM Command");
                     //}
                     break;
                 case "LayoutRecipe":