Add titlebar back to display nodes; this also allows the id bading to appear. Fixes #309

This commit is contained in:
rgthree
2024-08-28 21:44:35 -04:00
parent bbd4f632d8
commit 9b3b236ead
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -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;
-1
View File
@@ -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;