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

Fix cleanup of closed wp

This commit is contained in:
kelteseth 2018-03-19 16:17:31 +01:00
parent 30b965fc88
commit a5af50b31c
3 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ Item {
onStateChanged: {
bgMouseArea.focus = monitors.state == "active" ? true : false
if(monitors.state === "active"){
screenPlay.requestProjectSettingsListModelAt(at)
}
}
Rectangle {

View File

@ -55,6 +55,7 @@ void ScreenPlay::removeAllWallpaper()
{
m_sdkc->closeAllWallpapers();
m_settings->setActiveWallpaperCounter(0);
m_screenPlayWallpaperList.clear();
emit allWallpaperRemoved();
}

View File

@ -23,6 +23,8 @@ void SDKConnector::closeAllWallpapers()
{
for (int i = 0; i < m_clients.size(); ++i) {
m_clients.at(i)->close();
m_clients.clear();
m_clients.squeeze();
}
}