summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-11-30 13:47:11 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-11-30 15:14:47 +0100
commit5bfbbb2c245ac8eb16268856d8c06559ced1a7fe (patch)
tree0dcf8084750134e9feb49bf4bcf4004e64964f74 /src/windows.py
parent5db91443033d10af188206f6d5dc705bac22b0e8 (diff)
downloadpoezio-5bfbbb2c245ac8eb16268856d8c06559ced1a7fe.tar.gz
poezio-5bfbbb2c245ac8eb16268856d8c06559ced1a7fe.tar.bz2
poezio-5bfbbb2c245ac8eb16268856d8c06559ced1a7fe.tar.xz
poezio-5bfbbb2c245ac8eb16268856d8c06559ced1a7fe.zip
Add a hide_user_lits option that does what it says.
fix #2170
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/windows.py b/src/windows.py
index 751c6c39..1b23cd03 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -227,6 +227,8 @@ class UserList(Win):
def refresh(self, users):
log.debug('Refresh: %s',self.__class__.__name__)
+ if config.get("hide_user_list", "false") == "true":
+ return # do not refresh if this win is hidden.
with g_lock:
self._win.erase()
if config.get('user_list_sort', 'desc').lower() == 'asc':