mirror of https://github.com/keeweb/keeweb.git
fix #780: clear template group on deletion
This commit is contained in:
parent
7d13b49093
commit
b3cd56b9c4
|
@ -255,6 +255,9 @@ const GroupModel = MenuItemModel.extend({
|
|||
moveToTrash: function() {
|
||||
this.file.setModified();
|
||||
this.file.db.remove(this.group);
|
||||
if (this.group.uuid.equals(this.file.db.meta.entryTemplatesGroup)) {
|
||||
this.file.db.meta.entryTemplatesGroup = undefined;
|
||||
}
|
||||
this.file.reload();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue