From ef52fd6fd07508883dce4eb002acda59f0169e59 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 23 四月 2026 10:19:33 +0800
Subject: [PATCH] 优化;

---
 Util.ManualDebug/ManualDebug.xaml.cs |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/Util.ManualDebug/ManualDebug.xaml.cs b/Util.ManualDebug/ManualDebug.xaml.cs
index 7fa336e..8c6b5ef 100644
--- a/Util.ManualDebug/ManualDebug.xaml.cs
+++ b/Util.ManualDebug/ManualDebug.xaml.cs
@@ -203,6 +203,19 @@
                 if (e.EventCode == 10000)
                 {
                     executionWrapper?.SetContext(e.Data);
+
+                    string key = $"Running.OvenName";
+                    executionWrapper?.SetFileGlobalValue(key, 1, OvenName);
+
+                    key = $"Running.CellName";
+                    executionWrapper?.SetFileGlobalValue(key, 1, CellName);
+
+                    key = $"Running.OvenIndex";
+                    executionWrapper?.SetFileGlobalValue(key, 1, OvenIndex);
+
+                    key = $"Running.CellIndex";
+                    executionWrapper?.SetFileGlobalValue(key, 1, CellIndex);
+
                     return;
                 }
                 if (e.EventCode == 10001)
@@ -254,19 +267,7 @@
         {
             try
             {
-                string key = $"Running.OvenName";
-                executionWrapper?.SetFileGlobalValue(key, 1, OvenName);
-
-                key = $"Running.CellName";
-                executionWrapper?.SetFileGlobalValue(key, 1, CellName);
-
-                key = $"Running.OvenIndex";
-                executionWrapper?.SetFileGlobalValue(key, 1, OvenIndex);
-
-                key = $"Running.CellIndex";
-                executionWrapper?.SetFileGlobalValue(key, 1, CellIndex);
-
-                key = $"Running.ActionName";
+                string key = $"Running.ActionName";
                 executionWrapper?.SetFileGlobalValue(key, 1, name);
             }
             catch (Exception ex)

--
Gitblit v1.9.1