clear 'dirty' documents when closing all

This commit is contained in:
Michael Shamoon 2022-02-17 23:05:14 -08:00
parent 66b9a99e71
commit c9baa76afd

View File

@ -102,6 +102,7 @@ export class OpenDocumentsService {
modal.componentInstance.buttonsEnabled = false
modal.close()
this.openDocuments.splice(0, this.openDocuments.length)
this.dirtyDocuments.clear()
this.save()
})
const subject = new Subject<boolean>()
@ -109,6 +110,7 @@ export class OpenDocumentsService {
return subject.asObservable()
} else {
this.openDocuments.splice(0, this.openDocuments.length)
this.dirtyDocuments.clear()
this.save()
return of(true)
}