refactor: prefer using app.whenReady() to avoid a race condition

This commit is contained in:
Amelia Frost 2026-04-01 00:40:26 -07:00
parent b59ab85e7a
commit 7d07e3fcc8
No known key found for this signature in database

View file

@ -79,7 +79,7 @@ const loadInject = () => {
if (acquiredLock) {
updateElectronApp({ onNotifyUser });
app.on("ready", () => {
app.whenReady().then(() => {
applyAppName();
createMainWindow();
if (mainWindow) {