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
This commit is contained in:
Michael Vetter
2019-11-05 21:06:07 +01:00
parent 68843f2448
commit 40dc5932f7
3 changed files with 13 additions and 0 deletions

View File

@@ -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