From 32eea997b961483bad77976c54f0669835f0185e Mon Sep 17 00:00:00 2001 From: "DESKTOP-GPE37UV\\THINKAPD" Date: Thu, 1 Dec 2022 17:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3RecipeEditor=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E8=83=BD=E8=BF=9B=E5=85=A5Cell-Access-Perm?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=A8=A1=E5=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SicUI/Models/RecipeEditors/RecipeEditorViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SicUI/Models/RecipeEditors/RecipeEditorViewModel.cs b/SicUI/Models/RecipeEditors/RecipeEditorViewModel.cs index b6c8a54..3165e22 100644 --- a/SicUI/Models/RecipeEditors/RecipeEditorViewModel.cs +++ b/SicUI/Models/RecipeEditors/RecipeEditorViewModel.cs @@ -2064,7 +2064,7 @@ namespace SicUI.Models.RecipeEditors /// public bool EnterCellAccessPermissionEditMode() { - if (CurrentRecipe == null) + if (CurrentRecipe == null || CurrentRecipe.Steps.Count <= 0) return false; // 如果Recipe已更改但为保存,禁止编辑