fix: compilation on Windows
This commit is contained in:
parent
448c777812
commit
1caae11e8f
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue