We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following:
egui/crates/egui_extras/src/loaders/file_loader.rs
Line 99 in 0f1d6c2
Doesn't take into account that the user may want to forget the image before it's loaded. Here:
Line 111 in 0f1d6c2
or here:
Line 115 in 0f1d6c2
The following would be a better alternative (untested):
let mut cache = cache.lock(); if cache.contains(&uri) { cache.insert(uri.clone(), Poll::Ready(result)); ctx.request_repaint(); log::trace!("finished loading {uri:?}"); } else { log::trace!("cancelled loading {uri:?}"); }
This assert was recently added by @bircni and @lucasmerlin in 58b2ac8. It's possible similar assertions were added in other loaders.
The text was updated successfully, but these errors were encountered:
Good catch! Would you mind opening a PR? 🙏 Your fix looks correct
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The following:
egui/crates/egui_extras/src/loaders/file_loader.rs
Line 99 in 0f1d6c2
Doesn't take into account that the user may want to forget the image before it's loaded. Here:
egui/crates/egui_extras/src/loaders/file_loader.rs
Line 111 in 0f1d6c2
or here:
egui/crates/egui_extras/src/loaders/file_loader.rs
Line 115 in 0f1d6c2
The following would be a better alternative (untested):
This assert was recently added by @bircni and @lucasmerlin in 58b2ac8. It's possible similar assertions were added in other loaders.
The text was updated successfully, but these errors were encountered: