From 3ddb98ccb4fb2e2cc7acb17c11421dd10ed74571 Mon Sep 17 00:00:00 2001 From: mauro-balades Date: Mon, 7 Oct 2024 18:27:59 +0200 Subject: [PATCH] Added a cache remover for the zen themes --- src/ZenThemesCommon.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ZenThemesCommon.mjs b/src/ZenThemesCommon.mjs index 7c1feaf..b514b92 100644 --- a/src/ZenThemesCommon.mjs +++ b/src/ZenThemesCommon.mjs @@ -21,6 +21,10 @@ var ZenThemesCommon = { return PathUtils.join(this.themesRootPath, themeId); }, + resetThemesCache() { + this.themes = null; + }, + async getThemes() { if (!this.themes) { if (!(await IOUtils.exists(this.themesDataFile))) {