messing around and testing

This commit is contained in:
Zamitto 2024-05-18 00:13:43 -03:00
parent cdad2f5554
commit 10943408e9
3 changed files with 55 additions and 3 deletions

View file

@ -63,11 +63,18 @@ app.whenReady().then(() => {
where: { id: 1 },
});
WindowManager.createMainWindow();
WindowManager.createSplashScreen();
WindowManager.createSystemTray(userPreferences?.language || "en");
WindowManager.mainWindow?.on("ready-to-show", () => {
autoUpdater.checkForUpdatesAndNotify();
WindowManager.splashWindow?.on("ready-to-show", () => {
console.log("ready to show");
autoUpdater.checkForUpdates().then((r) => {
console.log(r);
WindowManager.splashWindow?.close();
WindowManager.createMainWindow();
});
});
});
});