Skip to content

Commit 25b3f1b

Browse files
committed
Use model number as display name
1 parent 75c1f2c commit 25b3f1b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ class Trackers {
519519

520520
// only write values once, to avoid overwriting good values later.
521521
if (info->name == "") {
522-
auto controller_type = this->GetStringProp(index, ETrackedDeviceProperty::Prop_ControllerType_String);
523-
if (controller_type.has_value()) {
524-
info->name = controller_type.value();
522+
auto model_number = this->GetStringProp(index, ETrackedDeviceProperty::Prop_ModelNumber_String);
523+
if (model_number.has_value()) {
524+
info->name = model_number.value();
525525
} else {
526526
// uhhhhhhhhhhhhhhh
527527
info->name = fmt::format("Index{}", index);

0 commit comments

Comments
 (0)