mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-25 16:37:23 +08:00
bugfix about last patch
This commit is contained in:
parent
2d50ec4a98
commit
dc6ac7def0
@ -250,10 +250,10 @@ class MaskEditorDialog extends ComfyDialog {
|
|||||||
const observer = new MutationObserver(function(mutations) {
|
const observer = new MutationObserver(function(mutations) {
|
||||||
mutations.forEach(function(mutation) {
|
mutations.forEach(function(mutation) {
|
||||||
if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
|
if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
|
||||||
if(self.last_style && self.last_style != 'none')
|
if(self.last_display_style && self.last_display_style != 'none')
|
||||||
ComfyApp.onClipspaceEditorClosed();
|
ComfyApp.onClipspaceEditorClosed();
|
||||||
|
|
||||||
self.last_style = self.element.style;
|
self.last_display_style = self.element.style.display;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -620,8 +620,8 @@ class MaskEditorDialog extends ComfyDialog {
|
|||||||
formData.append('subfolder', "clipspace");
|
formData.append('subfolder', "clipspace");
|
||||||
|
|
||||||
await uploadMask(item, formData);
|
await uploadMask(item, formData);
|
||||||
|
ComfyApp.onClipspaceEditorSave();
|
||||||
this.close();
|
this.close();
|
||||||
ComfyApp.onClipspaceEditorClosed(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -57,8 +57,7 @@ export class ComfyApp {
|
|||||||
|
|
||||||
static onClipspaceEditorSave() {
|
static onClipspaceEditorSave() {
|
||||||
if(ComfyApp.clipspace_return_node) {
|
if(ComfyApp.clipspace_return_node) {
|
||||||
if(save_mode)
|
ComfyApp.pasteToClipspace(ComfyApp.clipspace_return_node);
|
||||||
ComfyApp.pasteToClipspace(ComfyApp.clipspace_return_node);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user