chore: remove theme delete logging, add notifications

This commit is contained in:
2026-05-27 15:02:06 +02:00
parent 3768ab1064
commit fcf9e46a8f
-3
View File
@@ -264,17 +264,14 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volum
export const deleteTheme = async (themeToUninstall: Theme) => {
console.log('Uninstall', themeToUninstall);
if (themeToUninstall.status !== 'installed') {
console.log('Theme is not installed', themeToUninstall.status);
return false;
}
const baseThemeFolder = await path.join(await path.homeDir(), '.ezpplauncher', 'themes');
if (!(await fs.exists(baseThemeFolder))) {
console.log('Theme base folder does not exist');
return false;
}
const themeFolder = await path.join(baseThemeFolder, themeToUninstall.folder_name);
if (!(await fs.exists(themeFolder))) {
console.log('Theme folder does not exist', themeFolder);
return false;
}
custom_themes.update((themes) => {