1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Fix closing of other types of wallpaper

This commit is contained in:
Elias Steurer 2019-09-16 20:31:06 +02:00
parent 74e05ff5b4
commit 9727ced1c9

View File

@ -31,8 +31,14 @@ void SDKConnector::closeAllConnections()
void SDKConnector::closeAllWallpapers()
{
QStringList types{
"videoWallpaper",
"qmlWallpaper",
"htmlWallpaper",
"godotWallpaper"
};
for (auto& client : m_clients) {
if(client->type() == "videoWallpaper"){
if (types.contains(client->type())) {
client->close();
}
}