diff options
author | James Booth <boothj5@gmail.com> | 2016-05-15 02:15:45 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-15 02:15:45 +0100 |
commit | a04e34fddcaf6efa3fea9014e64b6bc13d5afba8 (patch) | |
tree | a2481eb3c7dac5e8e9909c8bfdc8f95b913e3e7e /src/ui | |
parent | c6a6e3a51cb2fa1b036fa17cf89b8d9dab95c293 (diff) | |
download | profani-tty-a04e34fddcaf6efa3fea9014e64b6bc13d5afba8.tar.gz |
Fix output for tray timer setting
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 3f44f133..5c5afbd9 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1195,7 +1195,11 @@ cons_tray_setting(void) cons_show("Tray icon read (/tray) : OFF"); int seconds = prefs_get_tray_timer(); - cons_show("Tray timer (/tray) : %d seconds", seconds); + if (seconds == 1) { + cons_show("Tray timer (/tray) : 1 second"); + } else { + cons_show("Tray timer (/tray) : %d seconds", seconds); + } } void |