1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Improve FileLoader file uri to path handling for windows (#8163)

Current behavior fails when translating file uris that contain windows
UNC paths. This commit attempts to fix that behavior by looking at the
hostname attribute of the uri and changing behavior if the hostname is
present.

* Closes <https://github.com/emilk/egui/issues/8161>
* [x] I have followed the instructions in the PR template
This commit is contained in:
Anders Conbere
2026-05-25 01:50:31 -07:00
committed by GitHub
parent 22d1fa8f5b
commit 67322e3ebf
2 changed files with 89 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ use crate::Context;
pub use self::{bytes_loader::DefaultBytesLoader, texture_loader::DefaultTextureLoader};
/// Represents a failed attempt at loading an image.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum LoadError {
/// Programmer error: There are no image loaders installed.
NoImageLoaders,