|
|
@ -23,9 +23,12 @@ exports.createMainWindow = function () { |
|
|
|
exports.MainWindow.hide(); |
|
|
|
}); |
|
|
|
|
|
|
|
// mainWindow.on("close",function(event){
|
|
|
|
// event.preventDefault();
|
|
|
|
// mainWindow.hide();
|
|
|
|
// })
|
|
|
|
exports.MainWindow.isClose = false; |
|
|
|
exports.MainWindow.on("close", function (event) { |
|
|
|
if (!exports.MainWindow.isClose) { |
|
|
|
event.preventDefault(); |
|
|
|
exports.MainWindow.hide(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|