This commit is contained in:
Chris
2025-03-29 23:04:49 +11:00
parent 300dd7795e
commit 36f40224b9
+5 -1
View File
@@ -220,11 +220,15 @@ class Popup extends HTMLSpanElement {
ComfyApp.copyToClipspace(this.node)
ComfyApp.clipspace_return_node = this.node
ComfyApp.open_maskeditor()
this.seen_editor = false
setTimeout(this.wait_while_mask_editing.bind(this), 200)
}
wait_while_mask_editing() {
if (!this.seen_editor && document.getElementById('maskEditor')) {
console.log("Mask editor has appeared")
this.seen_editor = true
}
const cancel_button = document.getElementById("maskEditor_topBarCancelButton")
if (cancel_button && !cancel_button.filter_listener_added) {
cancel_button.addEventListener('click', (e)=>{ this.send_cancel() })