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:
parent
cd4ab21dd8
commit
198c884b85
@ -243,8 +243,7 @@ bool Theme::currentThemeHasImage(const QString &name) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !(d->findInTheme(name % QLatin1String(".svgz"), d->themeName, false).isEmpty())
|
return !d->findInTheme(name % QLatin1String(".svgz"), d->themeName).isEmpty() || !d->findInTheme(name % QLatin1String(".svg"), d->themeName).isEmpty();
|
||||||
|| !(d->findInTheme(name % QLatin1String(".svg"), d->themeName, false).isEmpty());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KSharedConfigPtr Theme::colorScheme() const
|
KSharedConfigPtr Theme::colorScheme() const
|
||||||
|
Loading…
Reference in New Issue
Block a user