fix(M02): 저장 안 한 고침 물음 — 「새 항목」 두 단추 화면으로 갈 때 · 카드 가져오기 전(가져온 뒤 카드를 다시 읽음)
39-5 예외 — 고침이 말없이 버려지지 않게. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt
This commit is contained in:
@@ -453,6 +453,8 @@ export function createStructurePanel(opts: StructurePanelOptions): StructurePane
|
||||
const word = PART_WORD[kind];
|
||||
const toNo = to && numbers[to.id]?.[PART_FIELD[kind]];
|
||||
if (!to || !toNo) return void showToast(TEXT.saveFirst, "error");
|
||||
// 카드에 저장 안 한 고침 — 가져온 뒤 카드를 다시 읽어 버려지니 먼저 물음
|
||||
if (cards.dirty() && !(await showConfirmDialog(TEXT.discardCards))) return;
|
||||
const target = `${toNo} ${columnHead(to)}`;
|
||||
const here = { layer: getActiveLayer(), owner: getActiveOwner() };
|
||||
const same = (from: From): boolean => from.layer === here.layer && from.owner === here.owner;
|
||||
|
||||
Reference in New Issue
Block a user