feat: integrate screen capture with recording start in WhisperState - Added screen capture trigger when recording starts if enhancement and screen capture are enabled
This commit is contained in:
parent
611e443dd2
commit
04adabffd5
@ -172,6 +172,13 @@ class WhisperState: NSObject, ObservableObject, AVAudioRecorderDelegate {
|
||||
|
||||
await ActiveWindowService.shared.applyConfigurationForCurrentApp()
|
||||
|
||||
// Trigger screen capture if enhancement and screen capture are enabled
|
||||
if let enhancementService = self.enhancementService,
|
||||
enhancementService.isEnhancementEnabled &&
|
||||
enhancementService.useScreenCaptureContext {
|
||||
await enhancementService.captureScreenContext()
|
||||
}
|
||||
|
||||
if let currentModel = self.currentModel, self.whisperContext == nil {
|
||||
do {
|
||||
try await self.loadModel(currentModel)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user