Skip to content

Commit

Permalink
Fix icon loading on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Dec 13, 2023
1 parent 52d389b commit d066bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn icon() -> Result<Option<IconData>, Box<dyn Error>> {

#[cfg(windows)]
fn icon() -> Result<Option<IconData>, Box<dyn Error>> {
IconData::try_from_png_bytes(include_bytes!("../build/windows/icon-256x256.png"))
eframe::icon_data::from_png_bytes(include_bytes!("../build/windows/icon-256x256.png"))
.map(Some)
.map_err(Into::into)
}

0 comments on commit d066bd0

Please sign in to comment.