Skip to content

Commit

Permalink
fix del 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 23, 2018
1 parent 5992982 commit 6de9b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def select_client(self):
class GroupSelector(Selector):
def __init__(self, action):
super(GroupSelector, self).__init__(action)
if "删除" in action and self.group_list[-1].node_list[-1].user_number == 1:
print(color_str(Color.RED, "仅剩最后一个节点无法删除!!!"))
if "删除" in action and len(self.group_list) == 1:
print(color_str(Color.RED, "仅剩最后一个端口无法删除!!!"))
self.group = None
elif len(self.group_list) > 1:
self.select_group()
Expand Down

0 comments on commit 6de9b3e

Please sign in to comment.