fix: Start 직후 Hint 2 에 "Place above pubic bone" 가 잠시 떴던 leak 제거
증상: Start Alignment 버튼 누른 직후 Hint 2 (아래쪽 박스) 에
"Place VesiScan above the pubic bone, then press Start" 가
잠깐 표시됨. 이 메세지는 Hint 1 (위쪽 박스) 전용.
원인: Start onClick 핸들러가 waitingForStart=false 만 바꾸고
directionHint 는 그대로 둠. directionHint 의 초기값/리셋값이
"Place...above pubic bone" 이라 V1 placement 엔진이 첫
cycle 에 새 hint 를 쓸 때까지 그 stale 값이 Hint 2 로 leak.
(waitingForStart=false 가 되면 Hint 2 가시 조건 충족)
수정: Start onClick 에 directionHint="" + directionIcon=""
추가. displayHint 가 " " (whitespace) → isNotBlank()=false
→ hint2Visible=false → 박스 자체가 사라짐 (배경도 투명).
엔진이 첫 commit 에서 새 hint 를 쓰면 Hint 2 정상 등장.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+4
@@ -1037,6 +1037,10 @@ fun PlacementGuideView(appState: AppState) {
|
||||
lastHintChangeMs = 0L
|
||||
scanCount = 0
|
||||
startPressedAtMs = System.currentTimeMillis()
|
||||
// Hint 2 leak 방지 — 엔진이 새 방향 힌트 쓸 때까지 비워둠
|
||||
// (이전엔 "Place above pubic bone" 가 Start 직후 Hint 2 칸에 뜨곤 함)
|
||||
directionHint = ""
|
||||
directionIcon = ""
|
||||
phaseHoldScans = 0
|
||||
placementPhase = PlacementPhase.VERTICAL
|
||||
isLocked = false
|
||||
|
||||
Reference in New Issue
Block a user