[tor-commits] [arm/master] fix: adding config option to drop interpretor
atagar at torproject.org
atagar at torproject.org
Fri Aug 26 17:29:43 UTC 2011
commit aa73b588dc8df25c2f60e6afcc2702d3b2af7754
Author: Damian Johnson <atagar at torproject.org>
Date: Thu Aug 25 18:26:19 2011 -0700
fix: adding config option to drop interpretor
All of the panels can be included/excluded via the user's armrc configuration.
Applying that to the interpretor panel too.
---
armrc.sample | 1 +
src/cli/controller.py | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/armrc.sample b/armrc.sample
index e19d4c4..8f65fbc 100644
--- a/armrc.sample
+++ b/armrc.sample
@@ -18,6 +18,7 @@ features.panels.show.log true
features.panels.show.connection true
features.panels.show.config true
features.panels.show.torrc true
+features.panels.show.interpretor true
# Read the proc contents directly instead of calling ps, netstat, and other
# resolvers. This provides very sizable performance benefits (around 90%
diff --git a/src/cli/controller.py b/src/cli/controller.py
index bc69e79..a0b465c 100644
--- a/src/cli/controller.py
+++ b/src/cli/controller.py
@@ -37,6 +37,7 @@ CONFIG = {"startup.events": "N3",
"features.panels.show.connection": True,
"features.panels.show.config": True,
"features.panels.show.torrc": True,
+ "features.panels.show.interpretor": True,
"features.redrawRate": 5,
"features.refreshRate": 5,
"features.confirmQuit": True,
@@ -98,7 +99,8 @@ def initController(stdscr, startTime):
if CONFIG["features.panels.show.torrc"]:
pagePanels.append([cli.torrcPanel.TorrcPanel(stdscr, cli.torrcPanel.Config.TORRC, config)])
- pagePanels.append([cli.interpretorPanel.InterpretorPanel(stdscr)])
+ if CONFIG["features.panels.show.interpretor"]:
+ pagePanels.append([cli.interpretorPanel.InterpretorPanel(stdscr)])
# initializes the controller
ARM_CONTROLLER = Controller(stdscr, stickyPanels, pagePanels)
More information about the tor-commits
mailing list