Clear image cache when tabbing out of canvas

This commit is contained in:
Yousef Khadadeh 2026-02-19 22:29:24 +03:00
parent c7024578af
commit 1f80107005
9 changed files with 32 additions and 0 deletions

View file

@ -33,6 +33,7 @@ class ResourceManager {
const std::vector<NetworkingObjects::NetObjOwnerPtr<ResourceData>>& resource_list();
float get_resource_retrieval_progress(const NetworkingObjects::NetObjID& id);
std::unordered_map<NetworkingObjects::NetObjID, ResourceData> copy_resource_set_to_map(const std::unordered_set<NetworkingObjects::NetObjID>& resourceSet) const;
void clear_display_cache();
void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version);
void save_file(cereal::PortableBinaryOutputArchive& a) const;