Skip to content

1.3.2 — Fix Windows close interception

Latest

Choose a tag to compare

@lmce72 lmce72 released this 16 Nov 04:13

Fix Windows windows closing about three seconds after the reflection prompt appears.

  • Cancel the native close synchronously in the main process before showing the prompt.
  • Keep repeated close attempts and timeout-to-stay working without entering the saving screen.
  • Release the guard for normal saving and exit; clean up listeners on unload, reload, or renderer failure.
  • Add regression coverage for cancellation, release, rearming, and cleanup.

Validation: regression tests, TypeScript checks, and build passed. Tested in an isolated empty vault on Windows with Obsidian 1.14.4: holding beyond three seconds, staying and closing again, timeout-to-stay, unload/reload, and confirmed exit. Other platforms, update/restart flows, and the declared minimum Obsidian version were not re-tested.

This fix relies on private Obsidian/Electron APIs. Install the attached main.js, manifest.json, and styles.css.