[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Drop unnecessary redraw when selecting menu item
commit 3d1c6eaf7a4375d2418086f6e770fbc3d5261227
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Mon Aug 22 09:14:50 2016 -0700
Drop unnecessary redraw when selecting menu item
Selecting a menu item causes us to close the menu and perform a full redraw. As
such, there's no need to perform a second redraw first (... or if there is I
haven't spotted it).
---
nyx/menu.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/nyx/menu.py b/nyx/menu.py
index e1f8bf3..b0764fa 100644
--- a/nyx/menu.py
+++ b/nyx/menu.py
@@ -63,8 +63,6 @@ class MenuItem(object):
"""
if self._callback:
- control = nyx.controller.get_controller()
- control.redraw()
self._callback()
def next(self):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits