mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Defer rollback so the rollback isn't swallowed logically.
Took 7 minutes
This commit is contained in:
parent
3f168b9e5d
commit
9f01c16692
1 changed files with 5 additions and 3 deletions
|
|
@ -681,9 +681,11 @@ void AppearanceSettingsPage::overrideAllCardArtWithPersonalPreferenceToggled(QT_
|
||||||
PictureLoader::clearNetworkCache(); // PixmapCache is no longer valid.
|
PictureLoader::clearNetworkCache(); // PixmapCache is no longer valid.
|
||||||
} else {
|
} else {
|
||||||
// If user cancels, revert the checkbox/state back
|
// If user cancels, revert the checkbox/state back
|
||||||
overrideAllCardArtWithPersonalPreferenceCheckBox.blockSignals(true);
|
QTimer::singleShot(0, this, [this, enable]() {
|
||||||
overrideAllCardArtWithPersonalPreferenceCheckBox.setChecked(!enable);
|
overrideAllCardArtWithPersonalPreferenceCheckBox.blockSignals(true);
|
||||||
overrideAllCardArtWithPersonalPreferenceCheckBox.blockSignals(false);
|
overrideAllCardArtWithPersonalPreferenceCheckBox.setChecked(!enable);
|
||||||
|
overrideAllCardArtWithPersonalPreferenceCheckBox.blockSignals(false);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue