From d5acbf78fea44b88d41554ca8c0e14a05916d2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanc?= Date: Fri, 4 Mar 2022 12:07:01 +0100 Subject: [PATCH] Ensure groups exist in themes when adding a new theme group --- plugins/themes/controllers/themes_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/themes/controllers/themes_controller.py b/plugins/themes/controllers/themes_controller.py index 4fba95f..c9a9fa3 100644 --- a/plugins/themes/controllers/themes_controller.py +++ b/plugins/themes/controllers/themes_controller.py @@ -302,6 +302,7 @@ def move_theme(self, direction, tid, gid=None): return redirect(url_for("themes")) def add_theme_group(self): + self.themesconfig["themes"]["groups"] = self.themesconfig["themes"].get("groups", []) self.themesconfig["themes"]["groups"].append({ "title": "new theme group", "items": []