test event

This commit is contained in:
zhandouxiaojiji committed 2020-10-14 11:26:43 +08:00
1 parent aa5a0fc62e
commit 69a284cc16
5 files changed
+41 -15

No files matched your search

+3 -4
View File
@@ -8,7 +8,7 @@ let createWindow = function () {
width: 1280,
height: 800,
webPreferences: {
// nodeIntegration: true
nodeIntegration: true
}
// fullscreenable:false,
// maximizable:false
@@ -18,6 +18,7 @@ let createWindow = function () {
mainWindow.on('closed', function () {
mainWindow = null
});
initMenu(mainWindow);
}
app.on('ready', createWindow)
app.on('window-all-closed', () => {
@@ -30,6 +31,4 @@ app.on('activate', () => {
if (mainWindow === null) {
createWindow()
}
});
initMenu();
});