diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-06-22 11:40:20 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2022-06-22 11:45:13 +0200 |
commit | 918d0608173d8f561eea3071613818bf3a59319d (patch) | |
tree | a2f1731cf0d1175e8dacb0af8ec3d97478cd6fe9 /src/ui | |
parent | 9f13b9e93950575160545f0fe2d6887eaf501c09 (diff) | |
download | profani-tty-918d0608173d8f561eea3071613818bf3a59319d.tar.gz |
Display mood preferences
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 11 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 6698a503..2c4a8e41 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1733,6 +1733,7 @@ cons_show_ui_prefs(void) cons_inpblock_setting(); cons_titlebar_setting(); cons_statusbar_setting(); + cons_mood_setting(); cons_alert(NULL); } @@ -2947,3 +2948,13 @@ cons_remove_alert(ProfWin* window) g_list_free_full(item, g_free); free(win_name); } + +void +cons_mood_setting(void) +{ + if (prefs_get_boolean(PREF_MOOD)) { + cons_show("Display user mood (/mood) : ON"); + } else { + cons_show("Display user mood (/mood) : OFF"); + } +} diff --git a/src/ui/ui.h b/src/ui/ui.h index a7886ab3..a3377690 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -334,6 +334,7 @@ void cons_executable_setting(void); void cons_slashguard_setting(void); void cons_mam_setting(void); void cons_silence_setting(void); +void cons_mood_setting(void); void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* last_activity); void cons_show_contact_offline(PContact contact, char* resource, char* status); void cons_theme_properties(void); |