mirror of https://github.com/keeweb/keeweb
fixed an empty notification about closing files
parent
e3f33b9d4c
commit
de0cf0ce67
|
@ -233,6 +233,9 @@ class AppModel {
|
|||
}
|
||||
|
||||
closeAllFiles() {
|
||||
if (!this.files.hasOpenFiles()) {
|
||||
return;
|
||||
}
|
||||
for (const file of this.files) {
|
||||
file.close();
|
||||
this.fileClosed(file);
|
||||
|
|
|
@ -615,6 +615,9 @@ class AppView extends View {
|
|||
}
|
||||
|
||||
closeAllFilesAndShowFirst() {
|
||||
if (!this.model.files.hasOpenFiles()) {
|
||||
return;
|
||||
}
|
||||
let fileToShow = this.model.files.find(
|
||||
(file) => !file.demo && !file.created && !file.skipOpenList
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue