Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(linux): a server error before the first line shows in full on the waiting card instead of being cut off

wqugurufb84d0cc9aac
diff --git a/linux/cicada/app/notes_window.py b/linux/cicada/app/notes_window.py
index 19159b5..5b79820 100644
--- a/linux/cicada/app/notes_window.py
+++ b/linux/cicada/app/notes_window.py
@@ -808,11 +808,12 @@ class NotesWindow(Gtk.Window):
hearing = listen.pending > 0 or listen.level >= 0.01
room = listen.source_kind == "room"
# Busy or erring before anything was heard: said here, or it reads as a quiet meeting.
+ # In the wrapping line, not the one-line title, which would cut it off.
trouble = listen.problem if kind == "busy" else None
self._state_card(box, "audio-input-microphone-symbolic" if room else "audio-speakers-symbolic", "grey",
- trouble or (L("正在识别…") if hearing else L("等有人说话")),
- L("正在用麦克风听会议室,有人说话后约 3 秒出字幕") if room
- else L("正在听电脑播放的声音,有声音后约 3 秒出字幕"))
+ L("正在识别…") if hearing else L("等有人说话"),
+ trouble or (L("正在用麦克风听会议室,有人说话后约 3 秒出字幕") if room
+ else L("正在听电脑播放的声音,有声音后约 3 秒出字幕")))
else:
self._state_card(box, "audio-speakers-symbolic", "grey", None,
L("点“开始听”,将电脑播放的声音转为双语字幕和纪要"))