Clear PixmapCache as well as NetworkCache.

Took 4 minutes
This commit is contained in:
Lukas Brübach 2025-10-03 15:45:06 +02:00
parent 2bdb0aec0c
commit ac5b5a14ad

View file

@ -678,7 +678,9 @@ void AppearanceSettingsPage::overrideAllCardArtWithPersonalPreferenceToggled(QT_
if (result == QMessageBox::Yes) { if (result == QMessageBox::Yes) {
SettingsCache::instance().setOverrideAllCardArtWithPersonalPreference(value); SettingsCache::instance().setOverrideAllCardArtWithPersonalPreference(value);
PictureLoader::clearNetworkCache(); // PixmapCache is no longer valid. // Caches are now invalid.
PictureLoader::clearPixmapCache();
PictureLoader::clearNetworkCache();
} else { } else {
// If user cancels, revert the checkbox/state back // If user cancels, revert the checkbox/state back
QTimer::singleShot(0, this, [this, enable]() { QTimer::singleShot(0, this, [this, enable]() {