Clear stale emoji after every caching.

This commit is contained in:
John Preston 2023-01-05 14:43:34 +04:00
parent 7882604a29
commit 28a51f1ec7

View file

@ -363,11 +363,13 @@ std::vector<QImage> LoadAndValidateSprites(int id) {
void ClearUniversalChecked() { void ClearUniversalChecked() {
Expects(InstanceNormal != nullptr && InstanceLarge != nullptr); Expects(InstanceNormal != nullptr && InstanceLarge != nullptr);
if (CanClearUniversal if (Universal
&& Universal
&& InstanceNormal->cached() && InstanceNormal->cached()
&& InstanceLarge->cached()) { && InstanceLarge->cached()) {
Universal->clear(); if (CanClearUniversal) {
Universal->clear();
}
ClearIrrelevantCache();
} }
} }