egui/crates/egui_extras/src/loaders
Varphone Wong 1f414c059d
`egui_extras`: Fixed handling of `file://` protocol for images (#4107)
* Remove the leading slash from the path if the target OS is Windows.

This is because Windows paths are not supposed to start with a slash.
For example, `file:///C:/path/to/file` is a valid URI, but
`/C:/path/to/file` is not a valid path.

* Use the input URI consistently as the cache key.

Currently, the cache key is inconsistently set as either the path or the
URI, while the forget key is always the URI. This inconsistency should
be resolved.

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-03-08 10:24:34 +01:00
..
ehttp_loader.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
file_loader.rs `egui_extras`: Fixed handling of `file://` protocol for images (#4107) 2024-03-08 10:24:34 +01:00
image_loader.rs Highlight submenu buttons when hovered and open (#3780) 2024-01-07 22:08:32 +01:00
svg_loader.rs Update resvg dependency of egui_extras (#3719) 2023-12-20 08:09:03 +01:00