about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-19 22:56:22 +0100
committerJames Booth <boothj5@gmail.com>2015-07-19 22:56:22 +0100
commitb63ede7964ffb932d27fac0bfe22aae7b92de2a5 (patch)
tree75eb50e61c5270e0a48bcaae23ed3c39b5b2acf6
parent46e2f11b93bb3dfed7b9f5c780961d18cb327b12 (diff)
downloadprofani-tty-b63ede7964ffb932d27fac0bfe22aae7b92de2a5.tar.gz
Fixed time preference display
-rw-r--r--src/ui/console.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index e07ba518..98691a0a 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -955,20 +955,16 @@ cons_time_setting(void)
 {
     char *pref_time = prefs_get_string(PREF_TIME);
     if (g_strcmp0(pref_time, "off") == 0)
-        cons_show("Time (/time)                  : OFF");
+        cons_show("Time main (/time)             : OFF");
     else
-        cons_show("Time (/time)                  : %s", pref_time);
-
+        cons_show("Time main (/time)             : %s", pref_time);
     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)
+    if (g_strcmp0(pref_time_statusbar, "off") == 0)
         cons_show("Time statusbar (/time)        : OFF");
     else
-        cons_show("Time statusbar (/time)        : seconds");
-
+        cons_show("Time statusbar (/time)        : %s", pref_time_statusbar);
     prefs_free_string(pref_time_statusbar);
 }