fix(renderer): keep typed excluded apps and failed template edits instead of silently discarding them
- Settings > Input: the excluded-apps field was reset from every telemetry snapshot (several per second while typing), so edits vanished before blur saved them; it now syncs only when the saved list changes - Templates: a failed save (e.g. deleted on another device) closed the dialog and dropped the edits; it now stays open and shows why, and a failed session start is reported too
This commit is contained in:
parent
29d22504ae
commit
67cc920e06
4 changed files with 21 additions and 8 deletions
|
|
@ -45,10 +45,13 @@ export function InputConsentPanel(): React.ReactElement {
|
|||
const paused = telemetry?.paused ?? false
|
||||
const suggestionEnabled = suggestion?.enabled ?? false
|
||||
|
||||
// 입력 상태는 스냅샷마다 새 객체로 온다 — 객체에 걸면 치는 도중 칸이 저장값으로 계속 되돌아간다.
|
||||
// 저장된 목록 문자열이 실제로 바뀔 때만 맞춘다.
|
||||
const excludedAppsSaved = telemetry?.excludedApps.join(', ')
|
||||
useEffect(() => {
|
||||
if (!telemetry) return
|
||||
setExcludedApps(telemetry.excludedApps.join(', '))
|
||||
}, [telemetry])
|
||||
if (excludedAppsSaved === undefined) return
|
||||
setExcludedApps(excludedAppsSaved)
|
||||
}, [excludedAppsSaved])
|
||||
|
||||
// 설정 파일에 굳은 실제 값을 그대로 보여준다 (하드코딩 기본값을 표시하면
|
||||
// 사용자가 보는 값과 동작이 어긋난다 — 실측: 트리거가 3008ms 로 저장돼 있었다).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue