feat(B07): 목록에서 연 도면 = 탭 — 열기 · 닫기 · 전환 · 이전/다음 · 탭 전환 때 미저장 편집 지킴(82-4)
- 공용 탭 줄: 마지막 한 탭 닫기 없음 · 지금 탭 미저장 점 · 탭 하나만 저장 표시 지움 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NPJGtfXo6GMbcpiboQC4uK
This commit is contained in:
@@ -474,6 +474,7 @@ export function mountStructureSheets(
|
||||
tabs: tabs.element,
|
||||
onChanged: (dirty) => {
|
||||
cadDirty = dirty;
|
||||
if (dirty && !readOnly) tabs.markDirty();
|
||||
report();
|
||||
},
|
||||
});
|
||||
@@ -490,7 +491,7 @@ export function mountStructureSheets(
|
||||
도면: tab.drawing ?? { format: 6, entities: [], layers: [{ ...BLANK_LAYER }] },
|
||||
}));
|
||||
listDirty = false;
|
||||
tabs.markClean(true);
|
||||
tabs.markClean(undefined, true);
|
||||
return {
|
||||
도면: first?.drawing ?? doc.도면,
|
||||
...(rest.length || doc.더한장 ? { 더한장: rest } : {}),
|
||||
|
||||
Reference in New Issue
Block a user