From 31cc9fbec1e34a77f1dad7e190815cf1bacf598e Mon Sep 17 00:00:00 2001 From: Holger Seelig Date: Sat, 30 Mar 2024 09:57:12 +0100 Subject: [PATCH] Removed proto var. --- src/Editors/OutlineEditor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Editors/OutlineEditor.js b/src/Editors/OutlineEditor.js index f5927fc0..56090f47 100644 --- a/src/Editors/OutlineEditor.js +++ b/src/Editors/OutlineEditor.js @@ -436,8 +436,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph const protoNode = node, used = Editor .isProtoNodeUsed (executionContext, protoNode), - available = Editor .getNextAvailableProtoNode (executionContext, protoNode), - proto = protoNode .isExternProto && executionContext .protos .get (protoNode .getName ()); + available = Editor .getNextAvailableProtoNode (executionContext, protoNode); var menu = [ { @@ -491,7 +490,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph { type: "separator" }, { label: _("Add Instance"), - enabled: !proto, + enabled: !(protoNode .isExternProto && executionContext .protos .get (protoNode .getName ())), args: ["addInstance", element .attr ("id"), executionContext .getId (), protoNode .getId ()], }, ]