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:
parent
7258646f4d
commit
98a2f397d4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user