aimed / aquarius

🧜🏼‍♂️ An electron based GUI for mermaid.js
MIT License
5 stars 5 forks source link

Ask when closing/opening new file if file changed and not saved #12

Open aimed opened 6 years ago

aimed commented 6 years ago

Asking before opening a new file has been implemented. Having problems adding the ask before closing feature. Neither of these seems to work:

    electron.remote.getCurrentWindow().addListener('close', this.handleClose);
    electron.remote.app.addListener('before-quit', this.handleClose);