mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Improve fix for corrupted font resource loading in older documents (#4482)
* Revert "Fix corrupted font resource loading in older documents"
This reverts commit 404d9f3047.
* Fix migrations for the Read Vector, Dot Product, Query JSON, and Sample Polyline nodes
* Fix text node migrations
* Provide resource storage to the resource message handler
* Refetch resources whose stored bytes are missing
* Add test for refetching resources with missing bytes
This commit is contained in:
@@ -276,7 +276,6 @@ pub async fn resource<'a: 'n>(
|
||||
return placeholder();
|
||||
};
|
||||
|
||||
// Stored bytes go missing when the browser evicts its storage or a write is interrupted
|
||||
let Some(resource) = application_io.load_resource(hash).await else {
|
||||
log::error!("Resource {hash} was not found in storage");
|
||||
return placeholder();
|
||||
|
||||
Reference in New Issue
Block a user