Share unavailable() so the Windows sensor logs unavailable transitions
This commit is contained in:
@@ -31,7 +31,7 @@ func (windowsSource) Watch(ctx context.Context, onChange func(WindowSnapshot)) {
|
||||
return
|
||||
}
|
||||
if !ok {
|
||||
onChange(WindowSnapshot{Health: EvidenceHealth{Available: false, Reason: "no foreground window"}})
|
||||
onChange(unavailable("no foreground window"))
|
||||
return
|
||||
}
|
||||
onChange(WindowSnapshot{Title: title, Class: class, Health: EvidenceHealth{Available: true}})
|
||||
|
||||
Reference in New Issue
Block a user