Fix Power Mode not detecting app/website on subsequent recordings when auto-restore is disabled

This commit is contained in:
Beingpax 2026-01-06 16:32:41 +05:45
parent 4fe450531c
commit 18464df195

View File

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