修正RecipeEditor为空时能进入Cell-Access-Perm编辑模式的问题。

This commit is contained in:
DESKTOP-GPE37UV\THINKAPD 2022-12-01 17:42:08 +08:00
parent be2319ea05
commit 32eea997b9
1 changed files with 1 additions and 1 deletions

View File

@ -2064,7 +2064,7 @@ namespace SicUI.Models.RecipeEditors
/// </summary>
public bool EnterCellAccessPermissionEditMode()
{
if (CurrentRecipe == null)
if (CurrentRecipe == null || CurrentRecipe.Steps.Count <= 0)
return false;
// 如果Recipe已更改但为保存禁止编辑