[tor-commits] [nyx/master] Update the selected events

atagar at torproject.org atagar at torproject.org
Sun May 15 05:37:21 UTC 2016


commit 46811b375dbfbac9c2f4d50f31c275646bbf25d9
Author: Sambuddha Basu <sambuddhabasu1 at gmail.com>
Date:   Sun May 8 01:49:28 2016 +0400

    Update the selected events
---
 nyx/panel/log.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nyx/panel/log.py b/nyx/panel/log.py
index f6c8d11..b78314e 100644
--- a/nyx/panel/log.py
+++ b/nyx/panel/log.py
@@ -145,6 +145,10 @@ class LogPanel(nyx.panel.DaemonPanel):
   def new_show_event_selection_prompt(self):
     event_types = nyx.popups.new_select_event_types()
 
+    if event_types and event_types != self._event_types:
+      self._event_types = nyx.log.listen_for_events(self._register_tor_event, event_types)
+      self.redraw(True)
+
   def show_snapshot_prompt(self):
     """
     Lets user enter a path to take a snapshot, canceling if left blank.





More information about the tor-commits mailing list