diff options
author | James Booth <boothj5@gmail.com> | 2015-03-10 23:35:08 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-10 23:35:08 +0000 |
commit | e5bb12a0d6223e6c6297c1700914332942a4ca00 (patch) | |
tree | 4f2d1999166703b5d626b5bac3ec17e20b2c7f73 /src/ui/console.c | |
parent | 0269129d17bf86f9db810a8a1720ff1d63ad336d (diff) | |
download | profani-tty-e5bb12a0d6223e6c6297c1700914332942a4ca00.tar.gz |
Added /time statusbar preference
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 745a12ee..dc8a3c7b 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -934,6 +934,16 @@ cons_time_setting(void) cons_show("Time (/time) : seconds"); prefs_free_string(pref_time); + + char *pref_time_statusbar = prefs_get_string(PREF_TIME_STATUSBAR); + if (g_strcmp0(pref_time_statusbar, "minutes") == 0) + cons_show("Time statusbar (/time) : minutes"); + else if (g_strcmp0(pref_time_statusbar, "off") == 0) + cons_show("Time statusbar (/time) : OFF"); + else + cons_show("Time statusbar (/time) : seconds"); + + prefs_free_string(pref_time_statusbar); } void |