This commit is contained in:
antelle 2018-12-28 19:11:45 +01:00
parent 6202de44df
commit e07777179f
2 changed files with 3 additions and 3 deletions

View File

@ -471,7 +471,7 @@ const FileModel = Backbone.Model.extend({
this.db.meta.keyChanged = this._oldKeyChangeDate;
}
this.set({ keyFileName: '', keyFilePath: '', keyFileChanged: changed });
Backbone.trigger('unset-keyfile', this.id)
Backbone.trigger('unset-keyfile', this.id);
this.setModified();
},

View File

@ -819,7 +819,7 @@ const OpenView = Backbone.View.extend({
},
moveOpenFileSelection: function(steps) {
let lastOpenFiles = this.getLastOpenFiles();
const lastOpenFiles = this.getLastOpenFiles();
if (this.currentSelectedIndex + steps >= 0 &&
this.currentSelectedIndex + steps <= lastOpenFiles.length - 1) {
this.currentSelectedIndex = this.currentSelectedIndex + steps;
@ -839,7 +839,7 @@ const OpenView = Backbone.View.extend({
moveOpenFileSelectionUp: function() {
this.moveOpenFileSelection(-1);
},
}
});
module.exports = OpenView;