Merge pull request #16984 from Snuffleupagus/altText-close

Don't try to close the `altText` dialog if it's not open (PR 16977 follow-up)
This commit is contained in:
calixteman 2023-09-20 11:14:28 +02:00 committed by GitHub
commit b80e0d881d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ class AltTextManager {
}
#finish() {
if (this.#dialog) {
if (this.#overlayManager.active === this.#dialog) {
this.#overlayManager.close(this.#dialog);
}
}