Commit 69b4480e authored by Link Mauve's avatar Link Mauve

Make UserList.refresh_if_possible not hyper dumb.

This function was actually calling refresh for every single item that
was different from the cached version.
parent a47e18e8
......@@ -47,10 +47,11 @@ class UserList(Win):
self.cache = new
self.refresh(users)
return
for i in range(len(old)):
if old[i] != new[i]:
for a, b in zip(old, new):
if a != b:
self.cache = new
self.refresh(users)
return
def refresh(self, users):
log.debug('Refresh: %s', self.__class__.__name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment