From 9b3b236ead5b42dae5b7738ad01b02cae81db9ef Mon Sep 17 00:00:00 2001 From: rgthree Date: Wed, 28 Aug 2024 21:44:35 -0400 Subject: [PATCH] Add titlebar back to display nodes; this also allows the id bading to appear. Fixes #309 --- src_web/comfyui/display_any.ts | 2 -- web/comfyui/display_any.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src_web/comfyui/display_any.ts b/src_web/comfyui/display_any.ts index 4716ed9..095dae0 100644 --- a/src_web/comfyui/display_any.ts +++ b/src_web/comfyui/display_any.ts @@ -15,8 +15,6 @@ app.registerExtension({ app: ComfyApp, ) { if (nodeData.name === "Display Any (rgthree)" || nodeData.name === "Display Int (rgthree)") { - (nodeType as any).title_mode = LiteGraph.NO_TITLE; - const onNodeCreated = nodeType.prototype.onNodeCreated; nodeType.prototype.onNodeCreated = function () { onNodeCreated ? onNodeCreated.apply(this, []) : undefined; diff --git a/web/comfyui/display_any.js b/web/comfyui/display_any.js index b840f5a..cff00f9 100644 --- a/web/comfyui/display_any.js +++ b/web/comfyui/display_any.js @@ -7,7 +7,6 @@ app.registerExtension({ name: "rgthree.DisplayAny", async beforeRegisterNodeDef(nodeType, nodeData, app) { if (nodeData.name === "Display Any (rgthree)" || nodeData.name === "Display Int (rgthree)") { - nodeType.title_mode = LiteGraph.NO_TITLE; const onNodeCreated = nodeType.prototype.onNodeCreated; nodeType.prototype.onNodeCreated = function () { onNodeCreated ? onNodeCreated.apply(this, []) : undefined;