Skip to content

Commit

Permalink
Merge branch 'master' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Mar 29, 2020
2 parents 25b4ed8 + 3ddbe93 commit 56d4821
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions desktop/electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
"files": [
"dist/**/*",
"desktop/electron.js",
"desktop/utils/**/*",
// "desktop/electron.dev.js",
// "nuxt.config.js",
".nuxt/**/*",
Expand Down
6 changes: 3 additions & 3 deletions desktop/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ app.on('ready', async () => {
}
// setTimeout(createWindow, 3000)
createWindow();
createMenu(Menu);
createMenu(app, Menu);
});

app.on('window-all-closed', () => {
Expand Down Expand Up @@ -113,7 +113,7 @@ function createWindow() {
mainWindow.webContents.openDevTools();
}

mainWindow.on('close', async (e) => {
mainWindow.on('close', (e) => {
// console.log('close');
// prevent first close to give time for `checkStorage` to run, otherwise `closed` event fires too early and set `mainWindow` to null
if (isReadyToClose) {
Expand Down Expand Up @@ -148,7 +148,7 @@ function createWindow() {
// console.log('close end');
});

mainWindow.on('closed', async () => {
mainWindow.on('closed', () => {
// console.log('closed');
mainWindow = null;
});
Expand Down
2 changes: 1 addition & 1 deletion desktop/utils/menu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function createMenu(Menu) {
module.exports = function createMenu(app, Menu) {
const template = [{
label: "Minter Console",
submenu: [
Expand Down

0 comments on commit 56d4821

Please sign in to comment.