Always capture screen when AI enabled
This commit is contained in:
parent
15b7647904
commit
fad746e39b
@ -134,14 +134,12 @@ class ActiveWindowService: ObservableObject {
|
||||
}
|
||||
}
|
||||
|
||||
// Wait for UI changes and model loading to complete first
|
||||
try? await Task.sleep(nanoseconds: 1_500_000_000) // 1.5 seconds
|
||||
|
||||
// Then check if we should capture
|
||||
if config.isAIEnhancementEnabled && config.useScreenCapture {
|
||||
let shouldCaptureScreen = !wasEnhancementEnabled || !wasScreenCaptureEnabled
|
||||
|
||||
if shouldCaptureScreen {
|
||||
// Wait a moment for UI changes and model loading to complete
|
||||
try? await Task.sleep(nanoseconds: 1_500_000_000) // 1.5 seconds
|
||||
await enhancementService.captureScreenContext()
|
||||
}
|
||||
await enhancementService.captureScreenContext()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user