From da06e5aa77d1bee310268efca044570935697958 Mon Sep 17 00:00:00 2001
From: sophelper <123211521@163.com>
Date: Thu, 5 Nov 2026 23:52:48 +0800
Subject: [PATCH] Add button for creating step violation rules
---
.../VVMs/RecipeEditor/RecipeEditor.xaml | 8 +++++--
tests/RegionEditorSmoke/Program.cs | 21 +++++++++++++++++++
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/src/SopHelper.App/VVMs/RecipeEditor/RecipeEditor.xaml b/src/SopHelper.App/VVMs/RecipeEditor/RecipeEditor.xaml
index 07c47bb..9950205 100644
--- a/src/SopHelper.App/VVMs/RecipeEditor/RecipeEditor.xaml
+++ b/src/SopHelper.App/VVMs/RecipeEditor/RecipeEditor.xaml
@@ -345,8 +345,12 @@
Text="{Binding RequiredObjects.Title}" />
-
+
+
+
+
diff --git a/tests/RegionEditorSmoke/Program.cs b/tests/RegionEditorSmoke/Program.cs
index 39a97e5..ff9a830 100644
--- a/tests/RegionEditorSmoke/Program.cs
+++ b/tests/RegionEditorSmoke/Program.cs
@@ -105,6 +105,27 @@ internal static class Program
var reopenedAgain = RecipeNode.From(SopConfigLoader.Load(savePath), "repeat-save", false);
if (reopenedAgain.SelectedStep?.Detection?.Method != ConditionMethod.TimeElapsed)
throw new Exception("保存后再次打开丢失判定方法");
+ var addRule = Descendants(stepView).OfType