Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ahqsoftwares/tao into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Nov 4, 2024
2 parents e881d17 + 1836855 commit f54fcee
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/platform_impl/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1029,21 +1029,12 @@ impl Window {
CoCreateInstance(&TaskbarList, None, CLSCTX_SERVER).unwrap()
};

let Some(Icon { inner }) = icon else {
unsafe {
taskbar
.SetOverlayIcon(self.window.0, None, None)
.unwrap();
}
return;
};

let icon = inner.as_raw_handle();
let icon = icon.map(|i| i.inner.as_raw_handle()).unwrap_or(HICON::default());

unsafe {
taskbar
.SetOverlayIcon(self.window.0, icon, None)
.unwrap();
.unwrap_or(());
}
}

Expand Down

0 comments on commit f54fcee

Please sign in to comment.