displaying last open file after detaching a yubikey

This commit is contained in:
antelle 2020-05-06 18:43:04 +02:00
parent 5a535bb07a
commit 2a1b01c0aa
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 8 additions and 0 deletions

View File

@ -321,6 +321,7 @@ class AppView extends View {
this.showEntries();
} else {
this.showOpenFile();
this.selectLastOpenFile();
}
this.fixClicksInEdge();
}
@ -585,6 +586,13 @@ class AppView extends View {
}
}
selectLastOpenFile() {
const fileToShow = this.model.fileInfos[0];
if (fileToShow) {
this.views.open.showOpenFileInfo(fileToShow);
}
}
saveAll() {
this.model.files.forEach(function(file) {
this.model.syncFile(file);