chore: remove theme delete logging, add notifications
This commit is contained in:
1 parent
3768ab1064
commit
fcf9e46a8f
1 file changed
-3
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user