Synchronize the indicator light status of CameraShutter at startup. (#3365)

This commit is contained in:
yinyue200
2024-11-11 22:07:18 +08:00
committed by GitHub
parent 63d3393b7b
commit 819207c4f1
2 changed files with 7 additions and 3 deletions

View File

@@ -481,9 +481,8 @@ namespace GHelper.Peripherals.Mouse
{
try
{
HidSharp.DeviceList.Local.GetHidDevices(VendorID(), ProductID())
.First(x => x.DevicePath.Contains(path));
return true;
return HidSharp.DeviceList.Local.GetHidDevices(VendorID(), ProductID())
.FirstOrDefault(x => x.DevicePath.Contains(path)) != null;
}
catch
{