You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change the height property of the mainWindow (e.g., from 600 to 300)
The issue per see:
the window is closed and a new window is created, but, if you move it to a different position on your screen you will notice that another window has been created.
also, any subsequent edits result in the same behavior.
I am currently using Windows 10, (Build 16299.248) and to run the scripts above I used cmder_mini (i.e., but I doubt this matters).
Do you have any clues how to tackle this?
Edit: I am aware that in the README you indicate the use of hardResetMethod: 'exit' to prevent spawning multiple instances, but in this case, the following did not make a difference:
We had a similar issue in #9 but it was actually fixed. Unfortunately I have no experience with Windows OS and could only help with Linux/MacOS related issues. I will keep this issue open, until we have a solution. Sorry about that :(
Thanks for responding. I will try to take a closer look and see if I can understand what exactly happens. Will write back if I find anything useful. No need to be sorry---this is a cool project.
At change event for the main script file is fired, electron-reload spawns electron process and calls app.quit() (or app.exit()). app.quit() does exiting the main process after all BrowserWindows were completely closed.
So there is a possibility of firing change event again after calling it.
For example:
The editor makes change twice.
Due to chokidar's (or fs.watch's) bug. There are many reports related to it.
A solution to that is ignoring multiple change events for the main script file.
Thanks for this awesome package!
I noticed that any hard reset results in spawning two
electron
processes. Here are the steps to reproduce it:electron-reload
by adding the following to themain.js
file:Triggering the issue:
height
property of themainWindow
(e.g., from600
to300
)The issue per see:
I am currently using Windows 10, (Build 16299.248) and to run the scripts above I used
cmder_mini
(i.e., but I doubt this matters).Do you have any clues how to tackle this?
Edit: I am aware that in the
README
you indicate the use ofhardResetMethod: 'exit'
to prevent spawning multiple instances, but in this case, the following did not make a difference:The text was updated successfully, but these errors were encountered: