mirror of https://github.com/keeweb/keeweb.git
fix #278: mark file as modified on trash empty
This commit is contained in:
parent
0ed8f6ce97
commit
511ecd2a25
|
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue