mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +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",
|
||||
"3D TV - Side by Side Stereo",
|
||||
"3D TV - Interleaved",
|
||||
|
||||
"Keyboard/Mouse"
|
||||
};
|
||||
|
||||
if (DEVICE_BLACKLIST.contains(deviceName)) {
|
||||
if (DEVICE_BLACKLIST.contains(deviceName) || deviceName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -151,7 +150,7 @@ void UserActivityLogger::connectedDevice(QString typeOfDevice, QString deviceNam
|
|||
QJsonObject actionDetails;
|
||||
const QString TYPE_OF_DEVICE = "type_of_device";
|
||||
const QString DEVICE_NAME = "device_name";
|
||||
|
||||
qDebug() << "UserActivityLogger::connectedDevice -> type: " << typeOfDevice << " - deviceName: " << deviceName;
|
||||
actionDetails.insert(TYPE_OF_DEVICE, typeOfDevice);
|
||||
actionDetails.insert(DEVICE_NAME, deviceName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue