修正RecipeEditor为空时能进入Cell-Access-Perm编辑模式的问题。
This commit is contained in:
parent
be2319ea05
commit
32eea997b9
|
@ -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已更改但为保存,禁止编辑
|
||||
|
|
Loading…
Reference in New Issue