Commit a58bbc05 authored by David Redondo's avatar David Redondo 🏎
Browse files

Don't delay ksplash until the entire slideshow is loaded

Summary:
Instead of loading the model and then showing the last shown image, we can show
it early so that we signal "wallpaper.loading = false" earlier.
CCBUG: 371455

Test Plan: Have massive slideshow, login

Reviewers: davidedmundson, broulik, #plasma

Reviewed By: davidedmundson, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27084
parent 0fb8e51b
......@@ -107,6 +107,9 @@ void Image::componentComplete()
if (m_mode == SingleImage) {
setSingleImage();
} else if (m_mode == SlideShow) {
// show the last image shown the last time
m_wallpaperPath = m_wallpaper;
emit wallpaperPathChanged();
startSlideshow();
}
}
......@@ -667,7 +670,7 @@ void Image::backgroundsFound()
// are not detected by KDirWatch, like a NFS directory being mounted)
QTimer::singleShot(1000, this, &Image::startSlideshow);
} else {
if (m_currentSlide == -1 && m_slideshowMode != Random) {
if (m_currentSlide == -1) {
m_currentSlide = m_slideFilterModel->indexOf(m_wallpaper) - 1;
} else {
m_currentSlide = -1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment