No need to explicitly disable the cache when using currentThemeHasImage

We have mechanisms to clear the cache as the current theme changes and
it only makes us access the disk repeatedly for no reason.
This commit is contained in:
Aleix Pol 2021-06-28 17:02:42 +02:00
parent cd4ab21dd8
commit 198c884b85
1 changed files with 1 additions and 2 deletions

View File

@ -243,8 +243,7 @@ bool Theme::currentThemeHasImage(const QString &name) const
return false;
}
return !(d->findInTheme(name % QLatin1String(".svgz"), d->themeName, false).isEmpty())
|| !(d->findInTheme(name % QLatin1String(".svg"), d->themeName, false).isEmpty());
return !d->findInTheme(name % QLatin1String(".svgz"), d->themeName).isEmpty() || !d->findInTheme(name % QLatin1String(".svg"), d->themeName).isEmpty();
}
KSharedConfigPtr Theme::colorScheme() const