将DeviceManager中的_targetDeviceId字段设为只读,解决IDE0044警告

This commit is contained in:
zqm
2025-10-29 17:10:22 +08:00
parent f0e894f9d5
commit af4cbb5895

View File

@@ -165,7 +165,7 @@ namespace JoyD.Windows.CS.Toprie
private List<DeviceInfo> _deviceList = new List<DeviceInfo>();
// 目标设备ID用于指定ID连接
private int _targetDeviceId = -1;
private readonly int _targetDeviceId = -1;
// 当前设备ID
private int _currentDeviceId = -1;
// 默认设备IP