diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-12 18:45:47 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-13 17:39:44 +0100 |
commit | 576784bca813a0c4eb7641f3bef59ae78ed12eec (patch) | |
tree | 5429c955070eabd01b22a049402f3edf2c3753d0 | |
parent | 3eae7ce82869dd2c313496913bb94438dd0177a9 (diff) | |
download | calcurse-576784bca813a0c4eb7641f3bef59ae78ed12eec.zip |
Hide import statistics in quiet mode
Do not show the import summary when system dialogs are disabled or when
the --quiet option is specified, even if calcurse is executed in
non-interactive mode.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1222,7 +1222,7 @@ void io_import_data(enum import_type type, const char *stream_name, int list) mem_free(read); mem_free(stat); wgetch(win[KEY].p); - } else if (ui_mode == UI_CMDLINE) { + } else if (ui_mode == UI_CMDLINE && show_dialogs()) { printf(proc_report, stats.lines); printf("\n%s / %s / %s / %s\n", stats_str[0], stats_str[1], stats_str[2], stats_str[3]); |