1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 20:22:39 +01:00

Fix always starting wallpaper

This commit is contained in:
Elias Steurer 2024-07-29 11:13:55 +02:00
parent f228a81ff1
commit 5318a4b54e

View File

@ -509,10 +509,11 @@ QCoro::Task<bool> ScreenPlayTimelineManager::setWallpaperAtTimelineIndex(
co_await timelineSection->deactivateTimeline(); co_await timelineSection->deactivateTimeline();
timelineSection->activateTimeline(); timelineSection->activateTimeline();
} else { } else {
// Append the new wallpaper data // IMPORTANT: Append the new wallpaper data,
// but do not start it! The selected timelineSection
// is not always be the currently running.
// Besides for this we have m_contentTimer checkActiveWallpaperTimeline()
timelineSection->wallpaperDataList.push_back(wallpaperData); timelineSection->wallpaperDataList.push_back(wallpaperData);
// Start all wallpaper
timelineSection->activateTimeline();
} }
break; break;