From 002caf09bfabf57b9ab0b6197585c561c9729d35 Mon Sep 17 00:00:00 2001 From: Huy Pham <42948410+hpham@users.noreply.github.com> Date: Thu, 7 May 2020 10:01:03 -0700 Subject: [PATCH] touch up --- daemon/core/gui/graph/node.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/core/gui/graph/node.py b/daemon/core/gui/graph/node.py index 2e1e364c..87223be0 100644 --- a/daemon/core/gui/graph/node.py +++ b/daemon/core/gui/graph/node.py @@ -213,10 +213,11 @@ class CanvasNode: self.context.add_command( label="Config Services", command=self.show_config_services ) - self.context.add_command( - label="Multiple Node Service Configuration", - command=self.multiple_node_service_config, - ) + if self.app.canvas.selection: + self.context.add_command( + label="Multiple Node Service Configuration", + command=self.multiple_node_service_config, + ) if is_emane: self.context.add_command( label="EMANE Config", command=self.show_emane_config @@ -300,7 +301,6 @@ class CanvasNode: dialog.show() def multiple_node_service_config(self): - print("multiple nodes services config ") dialog = MultipleNodeServiceDialog(self.app) dialog.show()