1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-09 12:32:40 +01: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 //Only use the first 32 chars for the appID
QString appID = args.at(0); QString appID = args.at(0);
m_appID = appID.remove("appID="); 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; << "\t AppID:" << m_appID << "\t type: " << m_type;
} else { } else {
qDebug() << "### Message from: " << m_appID << "\n###" << msg; qInfo() << "### Message from: " << m_appID << ": " << msg;
} }
} }