MarcoSelvatici / DEflow

DEflow - an intuitive cross-platform hardware design application.
GNU General Public License v3.0
3 stars 0 forks source link

Improve electron-specific boilerplate #57

Open tomcl opened 4 years ago

tomcl commented 4 years ago

catching events in electron main process will make any electron app nicer. Specifically:

display a solid color in window during startup, do not display anything till ready-to-show is emitted https://www.christianengvall.se/electron-white-screen-app-startup/

catch window cancel and if there is unsaved data query whether this is wanted. https://stackoverflow.com/questions/48408014/electron-catch-when-window-is-closed-using-the-x-button

(Visual2 has some examples of this using javascript / F#)