Skip to content

Commit e120da3

Browse files
Horatiu Muresanhorymury
authored andcommitted
fix(aot) Remove main window close handler
1 parent 63d31ed commit e120da3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

alwaysontop/main/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ const showAot = () => {
121121
}
122122
};
123123

124-
/**
125-
* Handle close event on main window
126-
*/
127-
const onClose = () => {
128-
logInfo('handling main window close');
129-
130-
closeWindow();
131-
};
132-
133124
/**
134125
* Attaches event handlers on the main window
135126
*/
@@ -138,9 +129,6 @@ const addWindowHandlers = () => {
138129

139130
mainWindow.on('blur', showAot);
140131
mainWindow.on('focus', hideAot);
141-
142-
// this might be redundant, since child windows will be closed anyway
143-
mainWindow.on('close', onClose);
144132
};
145133

146134
/**
@@ -151,7 +139,6 @@ const removeWindowHandlers = () => {
151139

152140
mainWindow.removeListener('blur', showAot);
153141
mainWindow.removeListener('focus', hideAot);
154-
mainWindow.removeListener('close', onClose);
155142
};
156143

157144

0 commit comments

Comments
 (0)