[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [nyx/master] Force a redraw after 'i' is pressed, fix a typo



commit ba1bd15c75dcba79d1345f7e11174713feb88f16
Author: patacca <patacca@xxxxxxxxxxxxx>
Date:   Thu Mar 10 20:02:02 2016 +0100

    Force a redraw after 'i' is pressed, fix a typo
---
 nyx/panel/graph.py  | 2 ++
 nyx/util/tracker.py | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/nyx/panel/graph.py b/nyx/panel/graph.py
index 7df5929..86390f2 100644
--- a/nyx/panel/graph.py
+++ b/nyx/panel/graph.py
@@ -529,6 +529,8 @@ class GraphPanel(panel.Panel):
 
       if selection != -1:
         self.update_interval = list(Interval)[selection]
+      
+      self.redraw(True)
     else:
       return False
 
diff --git a/nyx/util/tracker.py b/nyx/util/tracker.py
index 2b2b155..8378034 100644
--- a/nyx/util/tracker.py
+++ b/nyx/util/tracker.py
@@ -461,7 +461,7 @@ class Daemon(threading.Thread):
 
         self._process_pid = tor_pid
         self._process_name = tor_cmd if tor_cmd else 'tor'
-      elif event_type == stem.contorl.State.CLOSED:
+      elif event_type == stem.control.State.CLOSED:
         self._process_pid = None
         self._process_name = None
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits