fix: avoid rendering if app is not used
This commit is contained in:
1 parent
3f8e3eab9b
commit
fdddb0f8ed
1 file changed
+2
-1
@@ -46,7 +46,8 @@ class Window {
|
||||
}
|
||||
|
||||
func refreshThumbnail() {
|
||||
guard let cgImage = cgWindowId.screenshot() else { return }
|
||||
guard (App.shared as! App).appIsBeingUsed,
|
||||
let cgImage = cgWindowId.screenshot() else { return }
|
||||
thumbnail = NSImage(cgImage: cgImage, size: NSSize(width: cgImage.width, height: cgImage.height))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user