Update hub.go

This commit is contained in:
Felix Lange 2023-11-21 19:22:36 +01:00 committed by GitHub
parent a8a47001f3
commit 0b96cdc479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,9 +188,7 @@ func (hub *Hub) refreshWallets() {
for _, info := range infos {
for _, id := range hub.productIDs {
// Windows and Macos use UsageID matching, Linux uses Interface matching
if info.ProductID == id &&
info.Path != "" &&
(slices.Contains(hub.usageIDs, info.UsagePage) || info.Interface == hub.endpointID) {
if info.ProductID == id && info.Path != "" && (slices.Contains(hub.usageIDs, info.UsagePage) || info.Interface == hub.endpointID) {
devices = append(devices, info)
break
}