mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Feat: Custom Theme features and clean the old one
This commit is contained in:
8
main.js
8
main.js
@@ -9,6 +9,7 @@ process.on("unhandledRejection", (reason) => {
|
||||
});
|
||||
|
||||
const { app } = require("electron");
|
||||
const path = require("path");
|
||||
|
||||
const { logger, logSessionStart, logSessionEnd } = require("./server/logger");
|
||||
const { AutoUpdater } = require("./app/autoUpdater");
|
||||
@@ -16,6 +17,7 @@ const { startRPC, stopRPC } = require("./app/discordRPC");
|
||||
|
||||
const { configFeatures } = require("./config");
|
||||
const config = require("./config");
|
||||
const { initThemes } = require("./app/themeManager");
|
||||
|
||||
const { checkNativeDependencies } = require("./app/dependencyCheck");
|
||||
const { updateYtDlp } = require("./app/ytDlpUpdater");
|
||||
@@ -48,6 +50,12 @@ app.whenReady().then(async () => {
|
||||
|
||||
registerIpcHandlers(getMainWindow);
|
||||
|
||||
const themeFolderPath = config.localMode
|
||||
? path.join(__dirname, "theme")
|
||||
: path.join(process.resourcesPath, "theme");
|
||||
|
||||
await initThemes(themeFolderPath);
|
||||
|
||||
await createMainWindow();
|
||||
|
||||
if (configFeatures.discordRPC) startRPC();
|
||||
|
||||
Reference in New Issue
Block a user