Run power mode detection in background

This commit is contained in:
Beingpax 2026-01-08 10:19:13 +05:45
parent 072b57f365
commit 58577c3a7a

View File

@ -195,8 +195,10 @@ class WhisperState: NSObject, ObservableObject {
self.recordingState = .recording
}
// Detect and apply Power Mode for current app/website
await ActiveWindowService.shared.applyConfiguration(powerModeId: powerModeId)
// Detect and apply Power Mode for current app/website in background
Task {
await ActiveWindowService.shared.applyConfiguration(powerModeId: powerModeId)
}
// Load model and capture context in background without blocking
Task.detached { [weak self] in