Skip to content
Snippets Groups Projects
Commit 81262f8a authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[Dome] properly run at-exit operations on reload

parent 0b74a931
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,8 @@ import System from 'dome/system' ;
function reloadWindow(item, focusedWindow)
{
if (focusedWindow) {
// on reload, start fresh and close any old
// open secondary windows
if (focusedWindow.id === 1)
BrowserWindow.getAllWindows().forEach(function (win) {
if (win.id > 1) win.close();
});
reset(); // declared below
focusedWindow.send('dome.ipc.closing');
focusedWindow.reload();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment