mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-15 03:27:24 +08:00
change save button name to 'Save to node' if open in node.
clear clipspace_return_node after auto paste
This commit is contained in:
parent
8b57863ffe
commit
8a45286268
@ -187,7 +187,13 @@ class MaskEditorDialog extends ComfyDialog {
|
||||
document.removeEventListener("keydown", MaskEditorDialog.handleKeyDown);
|
||||
self.close();
|
||||
});
|
||||
var saveButton = this.createRightButton("Save", () => {
|
||||
|
||||
var save_button_title = "Save";
|
||||
if(ComfyApp.clipspace_return_node) {
|
||||
save_button_title = "Save to node";
|
||||
}
|
||||
|
||||
var saveButton = this.createRightButton(save_button_title, () => {
|
||||
document.removeEventListener("mouseup", MaskEditorDialog.handleMouseUp);
|
||||
document.removeEventListener("keydown", MaskEditorDialog.handleKeyDown);
|
||||
self.save();
|
||||
|
||||
@ -59,6 +59,7 @@ export class ComfyApp {
|
||||
static onClipspaceEditorSaved() {
|
||||
if(ComfyApp.clipspace_return_node) {
|
||||
ComfyApp.pasteToClipspace(ComfyApp.clipspace_return_node);
|
||||
ComfyApp.clipspace_return_node = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user