commit 4e6ef1a5023368feacad5b028b391d52dfaa908a Author: Damian Johnson atagar@torproject.org Date: Sat May 5 11:30:33 2018 -0700
Nyxrc color_override only worked if camel case
Great catch from cypherpunks on...
https://trac.torproject.org/projects/tor/ticket/26026 --- nyx/curses.py | 2 ++ web/changelog/index.html | 1 + 2 files changed, 3 insertions(+)
diff --git a/nyx/curses.py b/nyx/curses.py index 4003e16..2ebd2f6 100644 --- a/nyx/curses.py +++ b/nyx/curses.py @@ -169,6 +169,8 @@ Dimensions = collections.namedtuple('Dimensions', ['width', 'height'])
def conf_handler(key, value): if key == 'color_override': + value = stem.util.str_tools._to_camel_case(value) + if value not in Color and value != 'None': raise ValueError('"%s" isn't a valid color' % value) elif key == 'max_line_wrap': diff --git a/web/changelog/index.html b/web/changelog/index.html index bf8e1a3..7f0b2a1 100644 --- a/web/changelog/index.html +++ b/web/changelog/index.html @@ -71,6 +71,7 @@ <li><span class="component">Startup</span> <ul> <li>Connect by default to Tor Browser's default port (9151) when it's available</li> + <li>Nyxrc <b>color_override</b> configuration values only worked if camel case (:trac:`26026`)</li> </ul> </li>
tor-commits@lists.torproject.org