Clear image cache when tabbing out of canvas
This commit is contained in:
parent
c7024578af
commit
1f80107005
9 changed files with 32 additions and 0 deletions
|
|
@ -200,3 +200,8 @@ void ResourceManager::save_file(cereal::PortableBinaryOutputArchive& a) const {
|
|||
});
|
||||
a(strippedResources);
|
||||
}
|
||||
|
||||
void ResourceManager::clear_display_cache() {
|
||||
for(auto& [id, display] : displays)
|
||||
display->clear_cache();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue