RecipeEditorViewModel.cs中LoadRecipe()执行时调用ValidateEntireRecipe()对Recipe进行检查。
This commit is contained in:
parent
5af42a111c
commit
25a8b0e0fe
|
@ -2017,6 +2017,9 @@ namespace SicUI.Models.RecipeEditors
|
||||||
|
|
||||||
IsLoading = false;
|
IsLoading = false;
|
||||||
|
|
||||||
|
// 如果当前Recipe非本机Recipe,比例相关的参数可能由于算法不同导致结果不同,
|
||||||
|
// 重新计算一次Recipe,以更新比例计算值,并校验其合法性。
|
||||||
|
ValidateEntireRecipe();
|
||||||
CheckIfAllCellsValid(out var _);
|
CheckIfAllCellsValid(out var _);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue