Add preference for showing TLS indicator in titlebar

Issue #616
This commit is contained in:
James Booth
2015-10-14 00:46:16 +01:00
parent c9165ef9d2
commit ef832ce526
6 changed files with 19 additions and 3 deletions

View File

@@ -282,7 +282,7 @@ _show_self_presence(void)
mvwaddch(win, 0, cols - 2, ']');
wattroff(win, bracket_attrs);
if (is_connected) {
if (is_connected && prefs_get_boolean(PREF_TLS_SHOW)) {
wattron(win, bracket_attrs);
mvwaddch(win, 0, cols - tls_start, '[');
wattroff(win, bracket_attrs);