gpui: Update asset paths for more examples (#24646)
This PR updates the asset paths used in more GPUI examples such that they work when run from the repository root or from within `crates/gpui`. Release Notes: - N/A
This commit is contained in:
@@ -29,7 +29,7 @@ impl AssetSource for Assets {
|
||||
}
|
||||
}
|
||||
|
||||
const IMAGE: &str = "examples/image/app-icon.png";
|
||||
const IMAGE: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/examples/image/app-icon.png");
|
||||
|
||||
#[derive(Copy, Clone, Hash)]
|
||||
struct LoadImageParameters {
|
||||
|
||||
Reference in New Issue
Block a user