fix(voice_to_text_tray): use get() method for safer access to CURRENT_PRESET mode
Signed-off-by: Max P. <Mail@MPassarello.de>
This commit is contained in:
@@ -96,7 +96,7 @@ class WhisperWorker(QThread):
|
||||
print("Kein Ollama Prompt angegeben, nur Whisper Ergebnis verwendet.")
|
||||
|
||||
# Ergebnis ins Clipboard kopieren
|
||||
if CURRENT_PRESET["mode"] == "journal":
|
||||
if CURRENT_PRESET.get("mode") == "journal":
|
||||
today = datetime.date.today().strftime("%Y.%m.%d")
|
||||
journal_path = os.path.join(CONFIGURATION["journal_path"], f"{today} - {CURRENT_PRESET['journal_name']}.md")
|
||||
now = datetime.datetime.now().strftime("%H:%M:%S")
|
||||
|
Reference in New Issue
Block a user