miniSql

vs2019汉化99%
zgc123@gmail.com authored at 11/28/2023 4:10:34 PM zgc123@gmail.com committed at 11/28/2023 4:10:51 PM
0ced910
Tree
1 Parent(s) 93a03c2
Summary: 1 changed files with 2 additions and 2 deletions.
Modified +2 -2
Modified +2 -2
diff --git a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
index 0cdb7ae..69e7065 100644
--- a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
@@ -174,10 +174,10 @@ namespace MiniSqlQuery
         public ToolStripMenuItem GetMenuItem(string name)
         {
             ToolStripMenuItem menuItem = null;
-
+            //zhenggc 2023-11-28 modify 
             foreach (ToolStripMenuItem item in MainMenuStrip.Items)
             {
-                if (item.Text.Replace("&", string.Empty).ToLower() == name.ToLower())
+                if (item.Name.Replace("&", string.Empty).ToLower() == name.ToLower())
                 {
                     menuItem = item;
                     break;