This commit is contained in:
2022-01-20 13:36:13 +00:00
parent 84d4d05f85
commit 489142d137

View File

@@ -81,7 +81,6 @@ class Manager:
return self.__current["key"] return self.__current["key"]
def current(self, key): def current(self, key):
item = None item = None
if key!=None: if key!=None:
for x in self.__processes: for x in self.__processes:
@@ -92,7 +91,7 @@ class Manager:
self._current = None self._current = None
return return
onlyone(item["cmd"], [x for x in self.__processes if x["key"]!=item["key"]]) onlyone(item["cmd"], [x.cmd for x in self.__processes if x["key"]!=item["key"]])
self._current = item["key"] self._current = item["key"]