fix: check API key before starting recording

Previously the API key was only validated after stopping the
recording, wasting a full take if no key was configured. Now
startRecording() checks the transcription provider's API key
up front and aborts with a notice before touching the mic.
This commit is contained in:
2026-09-14 20:06:45 -04:00
parent c6a98d4050
commit e2c4a5264c
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export class AudioHandler {
}
}
private getTranscriptionApiKey(): string {
getTranscriptionApiKey(): string {
switch (this.plugin.settings.transcriptionProvider) {
case "groq":
return this.plugin.settings.groqApiKey;