From 198c884b85dea2f9651a5dab4e5e6535f499cce4 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 28 Jun 2021 17:02:42 +0200 Subject: [PATCH] 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. --- src/plasma/theme.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plasma/theme.cpp b/src/plasma/theme.cpp index 4654b5bf3..025e61f56 100644 --- a/src/plasma/theme.cpp +++ b/src/plasma/theme.cpp @@ -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