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:
parent
22e2b8e832
commit
7b45901d96
4 changed files with 7 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue