refactor: prefer using app.whenReady() to avoid a race condition
This commit is contained in:
parent
b59ab85e7a
commit
7d07e3fcc8
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ const loadInject = () => {
|
||||||
if (acquiredLock) {
|
if (acquiredLock) {
|
||||||
updateElectronApp({ onNotifyUser });
|
updateElectronApp({ onNotifyUser });
|
||||||
|
|
||||||
app.on("ready", () => {
|
app.whenReady().then(() => {
|
||||||
applyAppName();
|
applyAppName();
|
||||||
createMainWindow();
|
createMainWindow();
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue