mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 13:33:27 +02:00
omit unknown device names from clear story
This commit is contained in:
parent
aeafb3c9a7
commit
fe1a8a6b76
1 changed files with 2 additions and 3 deletions
|
@ -139,11 +139,10 @@ void UserActivityLogger::connectedDevice(QString typeOfDevice, QString deviceNam
|
||||||
"NullDisplayPlugin",
|
"NullDisplayPlugin",
|
||||||
"3D TV - Side by Side Stereo",
|
"3D TV - Side by Side Stereo",
|
||||||
"3D TV - Interleaved",
|
"3D TV - Interleaved",
|
||||||
|
|
||||||
"Keyboard/Mouse"
|
"Keyboard/Mouse"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (DEVICE_BLACKLIST.contains(deviceName)) {
|
if (DEVICE_BLACKLIST.contains(deviceName) || deviceName.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +150,7 @@ void UserActivityLogger::connectedDevice(QString typeOfDevice, QString deviceNam
|
||||||
QJsonObject actionDetails;
|
QJsonObject actionDetails;
|
||||||
const QString TYPE_OF_DEVICE = "type_of_device";
|
const QString TYPE_OF_DEVICE = "type_of_device";
|
||||||
const QString DEVICE_NAME = "device_name";
|
const QString DEVICE_NAME = "device_name";
|
||||||
|
qDebug() << "UserActivityLogger::connectedDevice -> type: " << typeOfDevice << " - deviceName: " << deviceName;
|
||||||
actionDetails.insert(TYPE_OF_DEVICE, typeOfDevice);
|
actionDetails.insert(TYPE_OF_DEVICE, typeOfDevice);
|
||||||
actionDetails.insert(DEVICE_NAME, deviceName);
|
actionDetails.insert(DEVICE_NAME, deviceName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue