mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Feat: Add theme folder access functionality in UI
This commit is contained in:
@@ -22,6 +22,10 @@ const FEATURE_WHITELIST = new Set([
|
||||
|
||||
const configFolderPath = featuresPath;
|
||||
|
||||
const themeFolderPath = config.localMode
|
||||
? path.join(__dirname, "..", "theme")
|
||||
: path.join(process.resourcesPath, "theme");
|
||||
|
||||
function registerIpcHandlers(getMainWindow) {
|
||||
|
||||
// Infos générales
|
||||
@@ -75,6 +79,8 @@ function registerIpcHandlers(getMainWindow) {
|
||||
);
|
||||
ipcMain.on("open-config", () => shell.openPath(configFolderPath));
|
||||
|
||||
ipcMain.on("open-theme", () => shell.openPath(themeFolderPath));
|
||||
|
||||
ipcMain.handle("get-themes", () => getThemes());
|
||||
|
||||
// Modification des features
|
||||
|
||||
Reference in New Issue
Block a user