Skip to content

Commit 070d8b6

Browse files
committed
On Windows implement id() by returning the label
This is done this way because at the moment, on Windows, there can only be one component with the label "Computer".
1 parent a05bc96 commit 070d8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl ComponentInner {
6666
}
6767

6868
pub(crate) fn id(&self) -> Option<&str> {
69-
None
69+
Some(&self.label)
7070
}
7171

7272
pub(crate) fn refresh(&mut self) {

0 commit comments

Comments
 (0)