From 24f551a39eae849d891da26cc91f90d354e3a2db Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sun, 12 Jul 2026 02:44:05 +0800
Subject: [PATCH] chore(mas): refresh codebase memory after split

---
 C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte b/C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte
index f15da74..2468466 100755
--- a/C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte
+++ b/C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte
@@ -9,7 +9,7 @@
   let status: IndicatorStatus = $state('hidden')
   let statusText = $state('')
   let barColor = $state('#007AFF')
-  let key = $state('Ctrl')
+  let key = $state('')
 
   const unsubVisible = indicatorVisible.subscribe(() => {})
   const unsubStatus = indicatorStatus.subscribe(s => {
@@ -20,7 +20,10 @@
     for (let i = 0; i < 4; i++) realVolumes[i] = realVolumes[i + 1]
     realVolumes[4] = vol
   })
-  const unsubHotkey = hotkeyName.subscribe(k => { key = k })
+  const unsubHotkey = hotkeyName.subscribe(k => {
+    key = k
+    updateVisuals(status)
+  })
 
   const AppleBlue   = '#007AFF'
   const AppleGreen  = '#34C759'
@@ -32,7 +35,7 @@
       case 'loading':
         barColor = AppleBlue;  statusText = '加载中'; break
       case 'ready':
-        barColor = AppleGreen; statusText = `按住${key}说话`; break
+        barColor = AppleGreen; statusText = key ? `按住${key}说话` : '触发键未设置'; break
       case 'recording':
         barColor = AppleRed;   statusText = ''; break
       case 'processing':

--
Gitblit v1.9.3