mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Fix Nodes/Edges name.
This commit is contained in:
1 parent
78721bdf08
commit
0e114fa7bb
2 files changed
+6
No files matched your search
@@ -75,6 +75,9 @@ class Edge(object):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
if self._name == "":
|
||||
return f"R{self.id}"
|
||||
|
||||
return self._name
|
||||
|
||||
def is_enable(self):
|
||||
|
||||
@@ -60,6 +60,9 @@ class Node(object):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
if self._name == "":
|
||||
return f"N{self.id}"
|
||||
|
||||
return self._name
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user