fix: 排序种子与当前刀序一致时跳过提示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 15:39:16 +08:00
parent 473b2ca9cf
commit 9896e54e93

View File

@@ -1510,6 +1510,11 @@ M30";
if (sortDiameters.Count != tools.Count)
return;
// 检查排序种子与当前刀序是否完全一致,一致则无需提示
var currentDiameters = tools.Select(t => t.Diameter).ToList();
if (currentDiameters.SequenceEqual(sortDiameters))
return;
// 构建提示消息
string message = hasSpecificSortFile && hasGeneralSortFile
? $"检测到两个排序种子文件:\n" +