[nyx/master] Drop unnecessary redraw when selecting menu item

27 Aug
2016
27 Aug
'16
6:23 p.m.
commit 3d1c6eaf7a4375d2418086f6e770fbc3d5261227 Author: Damian Johnson <atagar@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):
3189
Age (days ago)
3189
Last active (days ago)
0 comments
1 participants
participants (1)
-
atagar@torproject.org