From 58577c3a7ab03a31c90cdec2b472eb403efcd2be Mon Sep 17 00:00:00 2001 From: Beingpax Date: Thu, 8 Jan 2026 10:19:13 +0545 Subject: [PATCH] Run power mode detection in background --- VoiceInk/Whisper/WhisperState.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VoiceInk/Whisper/WhisperState.swift b/VoiceInk/Whisper/WhisperState.swift index acfb560..aedb491 100644 --- a/VoiceInk/Whisper/WhisperState.swift +++ b/VoiceInk/Whisper/WhisperState.swift @@ -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