Clear stale emoji after every caching.
This commit is contained in:
parent
7882604a29
commit
28a51f1ec7
1 changed files with 5 additions and 3 deletions
|
|
@ -363,11 +363,13 @@ std::vector<QImage> LoadAndValidateSprites(int id) {
|
|||
void ClearUniversalChecked() {
|
||||
Expects(InstanceNormal != nullptr && InstanceLarge != nullptr);
|
||||
|
||||
if (CanClearUniversal
|
||||
&& Universal
|
||||
if (Universal
|
||||
&& InstanceNormal->cached()
|
||||
&& InstanceLarge->cached()) {
|
||||
Universal->clear();
|
||||
if (CanClearUniversal) {
|
||||
Universal->clear();
|
||||
}
|
||||
ClearIrrelevantCache();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue