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,12 +363,14 @@ 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()) {
if (CanClearUniversal) {
Universal->clear(); Universal->clear();
} }
ClearIrrelevantCache();
}
} }
} // namespace } // namespace