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:
commit
b80e0d881d
@ -152,7 +152,7 @@ class AltTextManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#finish() {
|
#finish() {
|
||||||
if (this.#dialog) {
|
if (this.#overlayManager.active === this.#dialog) {
|
||||||
this.#overlayManager.close(this.#dialog);
|
this.#overlayManager.close(this.#dialog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user