[tor-commits] [nyx/master] Drop request_redraw()

atagar at torproject.org atagar at torproject.org
Mon Feb 15 14:45:09 UTC 2016


commit cfa6b91044bfcb62a543aaf267f377429a7dc1de
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Feb 10 12:01:50 2016 -0800

    Drop request_redraw()
    
    Really not needed in the one spot we use it.
---
 nyx/controller.py | 7 -------
 nyx/popups.py     | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/nyx/controller.py b/nyx/controller.py
index aadad15..dc9f53b 100644
--- a/nyx/controller.py
+++ b/nyx/controller.py
@@ -375,13 +375,6 @@ class Controller:
     if force:
       self._last_drawn = current_time
 
-  def request_redraw(self):
-    """
-    Requests that all content is redrawn when the interface is next rendered.
-    """
-
-    self._force_redraw = True
-
   def set_msg(self, msg = None, attr = None, redraw = False):
     """
     Sets the message displayed in the interfaces control panel. This uses our
diff --git a/nyx/popups.py b/nyx/popups.py
index c25b321..d6549a6 100644
--- a/nyx/popups.py
+++ b/nyx/popups.py
@@ -68,8 +68,8 @@ def popup_window(height = -1, width = -1, top = 0, left = 0, below_static = True
         return (None, 0, 0)
 
     def __exit__(self, exit_type, value, traceback):
-      nyx.controller.get_controller().request_redraw()
       panel.CURSES_LOCK.release()
+      nyx.controller.get_controller().redraw(True)
 
   return _Popup()
 





More information about the tor-commits mailing list