Verified Commit 02276423 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/potd: load the old cached image to avoid blank screen

parent 2e2ab2a3
Pipeline #194261 passed with stage
in 1 minute and 39 seconds
......@@ -41,6 +41,14 @@ void PotdClient::updateSource(bool refresh)
// Find the old cached image and load it for now
if (m_data.wallpaperImage.isNull()) {
const QString path = CachedProvider::identifierToPath(m_identifier, m_args);
if (QFile::exists(path)) {
const auto pluginResult = KPluginFactory::instantiatePlugin<PotdProvider>(m_metadata, this, m_args);
if (pluginResult) {
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