Skip to content

Commit

Permalink
Ensure groups exist in themes when adding a new theme group
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitblanc committed Mar 4, 2022
1 parent 8e63395 commit d5acbf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/themes/controllers/themes_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
Expand Down

0 comments on commit d5acbf7

Please sign in to comment.