fix manganis support for dioxus desktop

This commit is contained in:
Evan Almloff committed 2024-02-06 11:39:30 -06:00
1 parent ef101dd876
commit 3270f7341a
9 files changed
+63 -58

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@ use dioxus::prelude::*;
static ASSET_PATH: &str = "examples/assets/logo.png";
#[cfg(feature = "collect-assets")]
static ASSET_PATH: &str = manganis::mg!(image("examples/assets/logo.png").format(ImageType::Avif));
static ASSET_PATH: &str =
manganis::mg!(image("examples/assets/logo.png").format(ImageType::Avif)).path();
fn main() {
launch(app);