Fix Power Mode not detecting app/website on subsequent recordings when auto-restore is disabled
This commit is contained in:
parent
4fe450531c
commit
18464df195
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user