fix #278: mark file as modified on trash empty

This commit is contained in:
antelle 2016-07-19 20:42:47 +03:00
parent 0ed8f6ce97
commit 511ecd2a25
2 changed files with 7 additions and 0 deletions

View File

@ -465,13 +465,19 @@ var FileModel = Backbone.Model.extend({
emptyTrash: function() {
var trashGroup = this.getTrashGroup();
if (trashGroup) {
var modified = false;
trashGroup.getOwnSubGroups().slice().forEach(function(group) {
this.db.move(group, null);
modified = true;
}, this);
trashGroup.group.entries.forEach(function(entry) {
this.db.move(entry, null);
modified = true;
}, this);
trashGroup.get('entries').reset();
if (modified) {
this.setModified();
}
}
},

View File

@ -3,6 +3,7 @@ Release notes
##### v1.2.4 (2016-07-*)
`-` fix save to file
`-` mark file as modified on trash empty
##### v1.2.3 (2016-07-17)
`+` option to skip lock on minimize under mac