mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Clear PixmapCache as well as NetworkCache.
Took 4 minutes
This commit is contained in:
parent
2bdb0aec0c
commit
ac5b5a14ad
1 changed files with 3 additions and 1 deletions
|
|
@ -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]() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue