about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-15 02:15:45 +0100
committerJames Booth <boothj5@gmail.com>2016-05-15 02:15:45 +0100
commita04e34fddcaf6efa3fea9014e64b6bc13d5afba8 (patch)
treea2481eb3c7dac5e8e9909c8bfdc8f95b913e3e7e /src/command
parentc6a6e3a51cb2fa1b036fa17cf89b8d9dab95c293 (diff)
downloadprofani-tty-a04e34fddcaf6efa3fea9014e64b6bc13d5afba8.tar.gz
Fix output for tray timer setting
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 3060cf49..177c56bb 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -5880,7 +5880,11 @@ cmd_tray(ProfWin *window, const char *const command, gchar **args)
         char *err_msg = NULL;
         gboolean res = strtoi_range(args[1], &intval, 1, 10, &err_msg);
         if (res) {
-            cons_show("Tray timer set to %d seconds.", intval);
+            if (intval == 1) {
+                cons_show("Tray timer set to 1 second.");
+            } else {
+                cons_show("Tray timer set to %d seconds.", intval);
+            }
             prefs_set_tray_timer(intval);
             if (prefs_get_boolean(PREF_TRAY)) {
                 tray_set_timer(intval);