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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user