Do not display dialog on periodic save

When periodic save is enabled, do not print the "The data files were
successfully saved" dialog every time io_save_cal() is called.

Reported-by: Håkan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-18 08:40:45 +02:00
parent d0916ced78
commit 58f6ac62aa

View File

@ -445,7 +445,8 @@ void io_save_cal(enum save_display display)
io_unset_modified();
/* Print a message telling data were saved */
if (ui_mode == UI_CURSES && conf.system_dialogs) {
if (ui_mode == UI_CURSES && display == IO_SAVE_DISPLAY_BAR &&
conf.system_dialogs) {
status_mesg(save_success, enter);
wgetch(win[KEY].p);
}