MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / forceClose

Method forceClose

src/modals/TaskEditModal.ts:267–270  ·  view source on GitHub ↗

* Force close the modal without checking for unsaved changes. * Use this after a successful save or when discarding is intentional.

()

Source from the content-addressed store, hash-verified

265 * Use this after a successful save or when discarding is intentional.
266 */
267 forceClose(): void {
268 this.pendingClose = true;
269 super.close();
270 }
271
272 /**
273 * Override close() to detect unsaved changes and prompt user.

Callers 5

openEditModalMethod · 0.95
deleteTaskMethod · 0.95
createActionButtonsMethod · 0.95

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected