File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments