fix: compilation on Windows

This commit is contained in:
Jeremy Soller 2023-11-16 16:36:29 -08:00 committed by GitHub
parent 448c777812
commit 1caae11e8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,7 @@ impl Named {
}
}
#[cfg(not(windows))]
#[must_use]
pub fn path(self) -> Option<PathBuf> {
let mut name = &*self.name;
@ -84,6 +85,13 @@ impl Named {
})
}
#[cfg(windows)]
#[must_use]
pub fn path(self) -> Option<PathBuf> {
//TODO: implement icon lookup for Windows
None
}
pub fn handle(self) -> Handle {
Handle {
symbolic: self.symbolic,