Skip to content

Commit

Permalink
Merge pull request #37 from benoitblanc/master
Browse files Browse the repository at this point in the history
Ensure groups exist in themes when adding a new theme group
  • Loading branch information
manisandro authored Mar 4, 2022
2 parents 8e63395 + d5acbf7 commit d97cd45
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 d97cd45

Please sign in to comment.