please
This commit is contained in:
@@ -216,7 +216,14 @@ func captureAllDisplaysAndSend(ctx context.Context, env *rt.Env) error {
|
||||
}
|
||||
|
||||
func supportsCapture() bool {
|
||||
return safeDisplayCount() > 0
|
||||
return safeActiveDisplays() > 0
|
||||
}
|
||||
|
||||
func safeActiveDisplays() int {
|
||||
defer func() {
|
||||
_ = recover()
|
||||
}()
|
||||
return activeDisplays()
|
||||
}
|
||||
|
||||
func safeCaptureDisplay(display int) (*image.RGBA, error) {
|
||||
|
||||
Reference in New Issue
Block a user