[tor-commits] [nyx/master] Drop unnecessary redraw when selecting menu item
atagar at torproject.org
atagar at torproject.org
Sat Aug 27 18:23:50 UTC 2016
commit 3d1c6eaf7a4375d2418086f6e770fbc3d5261227
Author: Damian Johnson <atagar at torproject.org>
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):
More information about the tor-commits
mailing list