|
@@ -1417,15 +1417,15 @@ namespace FurnaceUI.Views.Recipes
|
|
|
DialogBox.ShowWarning($"Can not create folder {newName}, Folder name too long, should be less 200.");
|
|
|
return;
|
|
|
}
|
|
|
- prefix = GetPrefix(prefix, CurrentFileNode);
|
|
|
- if (_recipeProvider.RenameRecipe(prefix, CurrentFileNode.Name, recipeName))
|
|
|
+ prefix = dialog.FilePath;
|
|
|
+ if (_recipeProvider.RenameRecipe(dialog.FilePath, CurrentFileNode.Name, recipeName))
|
|
|
{
|
|
|
UIGlobalVariable.Instance.ProcessModifiedRecipe[CurrentFileNode.FullPath] = $"Rename Recipe from [{CurrentFileNode.FullPath}] to [{recipeName}] {DateTime.Now}";
|
|
|
}
|
|
|
CurrentRecipe.Name = newName;
|
|
|
CurrentRecipe.Description = dialog.Comment;
|
|
|
CurrentRecipe.ReviseTime = DateTime.Now;
|
|
|
- CurrentRecipe.PrefixPath = CurrentChamberType + "\\" + CurrentProcessType;
|
|
|
+ CurrentRecipe.PrefixPath = CurrentChamberType + "\\" + CurrentProcessType; ;
|
|
|
//ReloadRecipeFileList(CurrentChamberType, CurrentProcessType, newName, false);
|
|
|
ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == CurrentProcessType);
|
|
|
item.FileListByProcessType = RecipeSequenceTreeBuilder.GetFileNodeParameterList($"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}");// RecipeSequenceTreeBuilder.BuildFileNode(prefix, selectedFile, selectionIsFolder, recipes)[0].Files;
|