Feat: Add Configuration Button. user can edit config.json as wanted. Linked and IPC

This commit is contained in:
MasterAcnolo
2026-01-15 16:01:24 +01:00
parent 5398fed928
commit 163faec221
4 changed files with 15 additions and 1 deletions

10
main.js
View File

@@ -11,6 +11,13 @@ const { startRPC } = require("./server/discordRPC");
let mainWindow;
const logsFolderPath = logDir;
const basePath = config.localMode
? path.join(__dirname, "config")
: path.join(path.dirname(process.execPath), "resources");
const configFolderPath = path.join(basePath, "config.json");
const defaultDownloadPath = path.join(os.homedir(), "Downloads", "Freedom Loader");
app.setAppUserModelId("com.masteracnolo.freedomloader"); // pour notifications Windows
@@ -176,6 +183,9 @@ ipcMain.on("open-website", () => {
ipcMain.on("open-wiki", () => {
shell.openExternal("https://masteracnolo.github.io/FreedomLoader/pages/wiki.html");
});
ipcMain.on("open-config", () => {
if (configFolderPath) shell.openPath(configFolderPath);
});
// App ready