Fix: Save Themes inside "AppData"

This commit is contained in:
MasterAcnolo
2026-04-13 21:49:19 +02:00
parent d879a5eb1d
commit 238d4ea717
4 changed files with 74 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ const { configFeatures, featuresPath } = require("../config");
const { getThemes, reloadThemes } = require("./themeManager");
const config = require("../config");
const { validateDownloadPath, getDefaultDownloadPath } = require("./pathValidator");
const { userThemesPath } = require("../server/helpers/path.helpers");
const FEATURE_WHITELIST = new Set([
"autoUpdate",
@@ -24,9 +25,7 @@ const FEATURE_WHITELIST = new Set([
const configFolderPath = featuresPath;
const themeFolderPath = config.localMode
? path.join(__dirname, "..", "theme")
: path.join(process.resourcesPath, "theme");
const themeFolderPath = userThemesPath;
function registerIpcHandlers(getMainWindow) {