feat: implement linter with config file

This commit is contained in:
MasterAcnolo
2026-09-13 12:06:33 +02:00
parent 8af5a4a383
commit 58b6637eeb
8 changed files with 1127 additions and 16 deletions

View File

@@ -97,7 +97,7 @@ function startRPC() {
details: `Open Source Download Tools - ${config.version}`,
state: "masteracnolo.github.io/FreedomLoader",
};
rpc.clearActivity()
rpc.clearActivity();
rpc.setActivity(presence);
});

View File

@@ -118,11 +118,11 @@ function registerIpcHandlers(getMainWindow) {
ipcMain.on("window-minimize", () => {
// Minimize to tray
if (configFeatures.systemTray) {
getMainWindow()?.hide()
getMainWindow()?.hide();
logger.info("Window Minimized in SystemTray (Using Minimize Button)");
} else {
// Native minimize
getMainWindow()?.minimize()
getMainWindow()?.minimize();
logger.info("Window minimized normally");
}
}
@@ -210,7 +210,7 @@ function registerIpcHandlers(getMainWindow) {
*/
ipcMain.handle("send-report", async (_, params) => {
return await sendReport(params);
})
});
/**
* Updates a runtime feature flag and persists it to disk.

View File

@@ -95,7 +95,7 @@ function createSystemTray(devMode) {
} else {
window.show();
window.focus();
logger.info("Window Restored from SystemTray (Double Click on Tray Icon)")
logger.info("Window Restored from SystemTray (Double Click on Tray Icon)");
}
});