fix(app): Recorder-Stop vor Ersatz + create_monitor in Tests mocken

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-14 18:19:01 +02:00
parent 8e05c5b62d
commit 1f8adc5ce0
2 changed files with 14 additions and 6 deletions
+2
View File
@@ -103,6 +103,8 @@ class App:
from whisper_local.tray._notification import notify
device_name = self._config.microphone or "Mikrofon"
logger.warning("Konfiguriertes Mikrofon '%s' nicht gefunden, nutze Standard", device_name)
if self.recorder.is_recording:
self.recorder.stop()
self.recorder = Recorder(
sample_rate=self._config.sample_rate,
channels=self._config.channels,