From ebdf7a665967b4f97446c98ef2a7660d1dee9e1d Mon Sep 17 00:00:00 2001 From: Kirtan-pc Date: Tue, 30 Jun 2026 11:56:06 +0530 Subject: [PATCH] fix: improve theme profile import validation error message When importing a theme profile, if the filename fails validation (e.g. it contains disallowed characters like brackets or unsupported Unicode), the returned error is now descriptive and actionable. Instead of a generic: 'Invalid profile name: the filename contains reserved or disallowed characters.' It now returns: 'Invalid profile name: The filename contains unsupported characters. Please rename the file using only letters, numbers, spaces, hyphens, underscores, and parentheses (maximum 64 characters).' --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a2b6d5e..cbeaf21 100644 --- a/main.js +++ b/main.js @@ -2018,7 +2018,7 @@ app.whenReady().then(() => { const rawProfileName = path.basename(filePath, ".json"); if (!isValidProfileName(rawProfileName)) { - return { success: false, error: "Invalid profile name: the filename contains reserved or disallowed characters." }; + return { success: false, error: "Invalid profile name: The filename contains unsupported characters. Please rename the file using only letters, numbers, spaces, hyphens, underscores, and parentheses (maximum 64 characters)." }; } const profileName = rawProfileName; const profiles = settingsStore.loadProfiles();