about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-11-05 21:06:07 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-11-05 21:06:07 +0100
commit40dc5932f71ccb6bd67f4fd8365749a0ddecbf71 (patch)
treedda496c377db7713532387f4acd642211660f78a /src/ui
parent68843f2448256b9761b81dcd7656ea360dae9d75 (diff)
downloadprofani-tty-40dc5932f71ccb6bd67f4fd8365749a0ddecbf71.tar.gz
Add `/titlebar show presence` command
Additionally to `/presence titlebar on` we now allow the setting via
/titlebar show|hide presence` since it's about the titlebar.

Regards https://github.com/profanity-im/profanity/issues/1116
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 1fe9b01a..198b61a4 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1151,6 +1151,12 @@ cons_titlebar_setting(void)
     } else {
         cons_show("Resource show (/titlebar)           : OFF");
     }
+
+    if (prefs_get_boolean(PREF_PRESENCE)) {
+        cons_show("Titlebar presence (/titlebar)       : ON");
+    } else {
+        cons_show("Titlebar presence (/titlebar)       : OFF");
+    }
 }
 
 void