Verified Commit 0b911e79 authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/potd: Don't do force update when argument list is empty

When switching from Bing/Unsplash provider to any other provider that
has no argument, if the cache doesn't expire, don't do force update.
parent 052f78b0
Pipeline #156341 passed with stage
in 1 minute and 18 seconds
......@@ -171,7 +171,7 @@ QVariantList PotdProviderModel::arguments() const
void PotdProviderModel::setArguments(const QVariantList &args)
{
if (m_args == args) {
if (args.isEmpty() || m_args == args) {
return;
}
......
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