I am using a custom menu. I basically added a menu item named “Load” to the edit menu from this exemple.
I simply would like to take advantage of the integrated window menu to open and upload a JSON data file on the disk to get any data to display in a DIV after loading it through a menu item “Load”. Like any other desktop application that allow to load files from desktop and save files to desktop.
Taking advantage of the integrated window menu means I don’t want to create an HTML buttons to trigger an asynchronous message from ipcRenderer to ipcMain. In my opinion, that would seems confusing to get functions in a menu bar and functions on the webpage such as Save, Save As or Load.
I usually code in backend system and web development is pretty new (and complicated) to me. Also, I hope someone more experimented would have a good idea and solution to help me in achieving this.