From e38987d9168462419954998fa952c40da3441adc Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Sat, 18 May 2024 20:57:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20=E4=B8=80?= =?UTF-8?q?=E9=83=A8=E5=AE=9F=E8=A3=85=E6=BC=8F=E3=82=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - translation成功時に文字列が帰ってることを検証する処理に変更 - ミュート同期ボタンON/OFF時にマイク文字起こしの状態を変更する処理を追加 --- controller.py | 1 + model.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controller.py b/controller.py index 4e505c27..ec46dbbe 100644 --- a/controller.py +++ b/controller.py @@ -938,6 +938,7 @@ def callbackSetEnableVrcMicMuteSync(value): else: model.stopCheckMuteSelfStatus() view.setStateVrcMicMuteSync("disabled") + model.changeMicTranscriptStatus() def callbackSetEnableSendMessageToVrc(value): diff --git a/model.py b/model.py index 943c49bf..d65d3582 100644 --- a/model.py +++ b/model.py @@ -179,7 +179,7 @@ class Model: ) # 翻訳失敗時のフェールセーフ処理 - if translation is True: + if isinstance(translation, str): success_flag = True else: while True: