1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 16:32:33 +02:00

Workaround for type. Sometimes the time also contains the wallpaper executable path.

This commit is contained in:
Elias Steurer 2019-11-23 17:23:59 +01:00
parent 7258646f4d
commit 98a2f397d4

View File

@ -107,11 +107,24 @@ public slots:
//Only use the first 32 chars for the appID
QString appID = args.at(0);
m_appID = appID.remove("appID=");
m_type = args.at(1);
qDebug() << "###### Wallpaper created:"
QStringList types {
"videoWallpaper",
"qmlWallpaper",
"htmlWallpaper",
"godotWallpaper"
};
for (QString type : types) {
if(msg.contains(type)){
m_type = type;
}
}
qInfo() << "###### Wallpaper created:"
<< "\t AppID:" << m_appID << "\t type: " << m_type;
} else {
qDebug() << "### Message from: " << m_appID << "\n###" << msg;
qInfo() << "### Message from: " << m_appID << ": " << msg;
}
}