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): Settings shows the field for typing an AI service key again, so a key can be added or changed there

wquguru9126e150266c
diff --git a/linux/cicada/app/settings_window.py b/linux/cicada/app/settings_window.py
index 3693315..745f51b 100644
--- a/linux/cicada/app/settings_window.py
+++ b/linux/cicada/app/settings_window.py
@@ -499,7 +499,9 @@ class SettingsWindow(Gtk.Window):
self.get_key.get_child().show_all()
# Shown and hidden by show_key_state; show_all() must leave them alone.
self.entry_row.set_no_show_all(True)
- entry_row.show_all()
+ # Everything inside it (the hint stays out on its own): show_all() on the window stops at
+ # entry_row, so a wrapper left hidden here kept the field from ever appearing.
+ self.entry_row.get_child().show_all()
self.key_group = ui.boxed([key_row, self.entry_row, self.get_key])
title = ui.hbox(8, ui.pad(ui.text(L("AI 服务"), 12, "group-title", bold=True, wrap=False), 0, 0, 0, 2))
title.pack_end(self.provider_menu, False, False, 0)