# v0.1.542 — QA-086 [B] critic fix (titleBar 버튼 가드 + BuildContent Clear 시한폭탄 제거)

- 버전: v0.1.542
- 날짜: 2026-06-03
- 다운로드: [factory00-windows-x64-v0.1.542.zip](../../downloads/factory00-windows-x64-v0.1.542.zip) (170 MB)
- 캡처: [qa-screenshots/v0.1.542/](../../qa-screenshots/v0.1.542/)

---

## critic 코드리뷰 fix (v0.1.541 CONDITIONAL → 처리)
- 치명#2 (titleBar 위 버튼 클릭 시 드래그 발화): ResizableWindowController.WireMove 에 `evt.target is Button` 가드 — Refresh/모드 버튼 클릭은 창 이동 안 함. title Label 등 비-Button 영역은 드래그 허용.
- 치명#1 (ModbusTcp/Mitsubishi BuildContent `_root.Clear()` 시한폭탄): 제거. Build 1회 + 빈 _root 라 잉여 + 미래 재호출 시 리사이즈 핸들 삭제 위험 차단.
- 중대#1·2 (3패널 onDragStateChanged 누락): false-positive 판정 — Bootstrap box-select 가 overUIAtDown(IsPointerOverUI(_lmbDownPos))으로 titleBar/핸들(UI) 위 드래그를 이미 차단. PLC 의 콜백은 PortDragController(포트 후보 드래그)용이지 titleBar 드래그가 아님. 미부착 안전.
## 영향 파일 (3)
- `Assets/Scripts/UI/ResizableWindowController.cs` (WireMove 버튼 가드)
- `Assets/Scripts/Communication/Modbus/ModbusTcpInspectorPanel.cs` (Clear 제거)
- `Assets/Scripts/Communication/Mitsubishi/MitsubishiPlcDriverPanel.cs` (Clear 제거)
## 검증
- 컴파일 + Stage 2: 5개 서브윈도우 드래그/리사이즈/복원 + 타이틀바 버튼 클릭 시 창 미이동. (마우스 = Stage 2 PC)
