ruanzl 2 weeks ago
parent
commit
2deb75e388
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CameraModel/Form1.cs

+ 1 - 1
CameraModel/Form1.cs

@@ -65,7 +65,7 @@ namespace CameraModel
                 if (_device != null)
                 {
                     string UserDefinedName = _device.DeviceInfo.UserDefinedName;
-                    if (string.IsNullOrEmpty(UserDefinedName))
+                    if (string.IsNullOrEmpty(UserDefinedName) || UserDefinedName.Equals(input1.Text))
                     {
                         AntdUI.Message.success(this, "成功修改型号为:" + UserDefinedName, Font, 10);
                     }