mirror of https://github.com/keeweb/keeweb.git
displaying last open file after detaching a yubikey
This commit is contained in:
parent
5a535bb07a
commit
2a1b01c0aa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue