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

@@ -19,7 +19,7 @@ const config = require("../config");
const { validateDownloadPath, getDefaultDownloadPath } = require("./pathValidator");
const { userThemesPath } = require("../server/helpers/path.helpers");
const { createSystemTray, destroyTray } = require("./tray");
const { sendReport } = require("./sendReport");
const {sendReport, checkReportService, getReportServiceStatus} = require("./sendReport");
const { isUpdateAvailable, downloadUpdate, installUpdate } = require("./autoUpdater");
/**
@@ -210,6 +210,11 @@ function registerIpcHandlers(getMainWindow) {
return await sendReport(params);
});
ipcMain.handle("get-report-service-status", async () => {
await checkReportService();
return getReportServiceStatus();
});
ipcMain.handle("is-update-available", () => {
return isUpdateAvailable();
});