feat(bugReport): add service status check and update UI if sendReport server is down

This commit is contained in:
MasterAcnolo
2026-09-29 21:30:20 +02:00
parent 1e099f6bb6
commit 1c0dd32732
5 changed files with 114 additions and 10 deletions

View File

@@ -77,6 +77,7 @@ const { createSplashWindow, closeSplashWindow, setSplashProgress } = require("./
const { userThemesPath, initUserThemes, validateBinaries, defaultDownloadFolder } = require("./server/helpers/path.helpers");
const {createSystemTray, destroyTray} = require("./app/tray");
const { stopServer } = require("./server/server");
const {checkReportService} = require("./app/sendReport");
/**
* Expose .env in process.env
@@ -137,6 +138,9 @@ app.on("second-instance", () => {
app.whenReady().then(async () => {
logSessionStart(logDir, defaultDownloadFolder);
checkReportService().catch((err) => {
logger.warn(`Bug report service startup check failed: ${err.message}`);
});
createSplashWindow();