diff --git a/ScreenPlay/src/sdkconnector.cpp b/ScreenPlay/src/sdkconnector.cpp index 9c876c82..08be4922 100644 --- a/ScreenPlay/src/sdkconnector.cpp +++ b/ScreenPlay/src/sdkconnector.cpp @@ -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(); } }