diff options
| author | a1xd <[email protected]> | 2021-01-30 01:23:34 -0500 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-01-30 01:23:34 -0500 |
| commit | f64c40346dab580220101b0aacb4a6ff5484d86a (patch) | |
| tree | e6103ccb3a0a4adde6cab99a6293a63dbc90738e /grapher/Models/Devices/DeviceIDItem.cs | |
| parent | bump version (diff) | |
| download | rawaccel-f64c40346dab580220101b0aacb4a6ff5484d86a.tar.xz rawaccel-f64c40346dab580220101b0aacb4a6ff5484d86a.zip | |
fix device id not working with g305
this uses w32 apis for enumerating dev info instead of ManagementObjectSearcher, which upper-cases dev ids, differing from kernel/cfgmgr32
this also breaks showing dev name alongside id, as the name seems inaccessible from cfgmgr32 given an interface supplied by rawinput
not a big deal considering the names are too generic to be useful anyway
Diffstat (limited to 'grapher/Models/Devices/DeviceIDItem.cs')
| -rw-r--r-- | grapher/Models/Devices/DeviceIDItem.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/Models/Devices/DeviceIDItem.cs b/grapher/Models/Devices/DeviceIDItem.cs index 63c2761..8f1587b 100644 --- a/grapher/Models/Devices/DeviceIDItem.cs +++ b/grapher/Models/Devices/DeviceIDItem.cs @@ -40,7 +40,7 @@ namespace grapher.Models.Devices DeviceIDMenuItem.Checked = false; } - private string MenuItemText() => string.IsNullOrEmpty(ID) ? $"{Name}" : $"{Name}: {ID}"; + private string MenuItemText() => string.IsNullOrEmpty(ID) ? $"{Name}" : ID.Replace("&", "&&"); private string DisconnectedText() => $"Disconnected: {ID}"; |