DeviceInfo: Simplify hint

This commit is contained in:
Jonas Kvinge 2023-10-13 22:58:53 +02:00
parent 13ac20f8b3
commit ee1bf47f5c
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ void DeviceInfo::LoadIcon(const QVariantList &icons, const QString &name_hint) {
if (!icon.isNull() && icon.userType() == QMetaType::QString) {
QString icon_name = icon.toString();
if (!icon_name.isEmpty()) {
QString hint = QString(icons.first().toString() + name_hint).toLower();
QString hint = icons.first().toString().toLower() + name_hint.toLower();
if (hint.contains("phone")) icon_name_ = "device-phone";
else if (hint.contains("ipod") || hint.contains("apple")) icon_name_ = "device-ipod";
else if ((hint.contains("usb")) && (hint.contains("reader"))) icon_name_ = "device-usb-flash";