From 04ca41f4c39ae2ccec457887708c2887279fe9c7 Mon Sep 17 00:00:00 2001 From: impressionyang Date: Thu, 11 Jun 2026 16:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E6=89=98=E7=9B=98?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0=EF=BC=88?= =?UTF-8?q?statusChanged=20=E8=BF=9E=E6=8E=A5=E8=AF=AF=E5=88=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前修复按键卡顿时误将 statusChanged 信号连接中的 updateTrayIcon() 调用移除, 导致托盘图标始终显示初始绿色,不随录音/识别状态变化。 Co-Authored-By: Claude Opus 4.7 --- src/ui/main_window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/main_window.cpp b/src/ui/main_window.cpp index 89901ee..0cd8839 100644 --- a/src/ui/main_window.cpp +++ b/src/ui/main_window.cpp @@ -45,6 +45,7 @@ MainWindow::MainWindow(ConfigManager* configManager, connect(voiceInputService_, &VoiceInputService::statusChanged, this, [this](const QString& status) { LOG_DEBUG(kTag, QString("语音输入状态: %1").arg(status)); + updateTrayIcon(status); }); connect(voiceInputService_, &VoiceInputService::error, this, [this](const QString& err) {