Skip to content

Commit

Permalink
Merge branch 'update-to-electron-26'
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Oct 11, 2023
2 parents 9efdfaf + dd14ec0 commit 4446d1f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
28 changes: 14 additions & 14 deletions gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/google-protobuf": "^3.15.6",
"@types/history": "^4.7.11",
"@types/mocha": "^10.0.0",
"@types/node": "^18.15.0",
"@types/node": "^18.16.1",
"@types/node-gettext": "^3.0.3",
"@types/rbush": "^3.0.0",
"@types/react": "^18.0.21",
Expand All @@ -61,7 +61,7 @@
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"cross-env": "^7.0.3",
"electron": "^25.2.0",
"electron": "^26.3.0",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.2.0",
"electron-mocha": "^11.0.2",
Expand Down Expand Up @@ -112,7 +112,7 @@
"npm": ">=8.3"
},
"volta": {
"node": "18.15.0",
"npm": "9.7.2"
"node": "18.16.1",
"npm": "10.2.0"
}
}
8 changes: 4 additions & 4 deletions gui/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ class ApplicationMain
);
});

app.on('activate', this.onActivate);
app.on('ready', this.onReady);

app.on('before-quit', this.onBeforeQuit);
Expand All @@ -195,9 +194,6 @@ class ApplicationMain
log.info('quit received');
this.onQuit();
});

powerMonitor.on('suspend', this.onSuspend);
powerMonitor.on('resume', this.onResume);
}

public async performPostUpgradeCheck(): Promise<void> {
Expand Down Expand Up @@ -368,6 +364,10 @@ class ApplicationMain
}

private onReady = async () => {
app.on('activate', this.onActivate);
powerMonitor.on('suspend', this.onSuspend);
powerMonitor.on('resume', this.onResume);

// Disable built-in DNS resolver.
app.configureHostResolver({
enableBuiltInResolver: false,
Expand Down

0 comments on commit 4446d1f

Please sign in to comment.