Skip to content

Commit

Permalink
fix bad ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Sep 15, 2024
1 parent 2243029 commit d635078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/HeadsetControlQt/headsetcontrolqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,11 @@ void HeadsetControlQt::updateUIWithHeadsetInfo(const QJsonObject &headsetInfo)
{
// "product" returns "HID Device" on windows, hidapi limitation i guess.
// We can use it on linux to get a more precise device name.
QString deviceName;
#ifdef __linux__
QString deviceName = headsetInfo["product"].soString();
deviceName = headsetInfo["product"].toString();
#endif
QString deviceName = headsetInfo["device"].toString();
deviceName = headsetInfo["device"].toString();
QStringList capabilities = headsetInfo["capabilities_str"].toVariant().toStringList();
QJsonObject batteryInfo = headsetInfo["battery"].toObject();

Expand Down

0 comments on commit d635078

Please sign in to comment.