Show system dialog after reloading items

Suggested-by: Håkan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-28 12:50:57 +02:00
parent 6aa21da8c6
commit b32adc8b7b

View File

@ -257,6 +257,9 @@ static inline void key_generic_save(void)
static inline void key_generic_reload(void)
{
char *msg_um_asktype = NULL;
const char *reload_success =
_("The data files were reloaded successfully");
const char *enter = _("Press [ENTER] to continue");
if (io_get_modified()) {
const char *msg_um_prefix =
@ -335,6 +338,11 @@ static inline void key_generic_reload(void)
ui_todo_load_items();
ui_todo_sel_reset();
if (conf.system_dialogs) {
status_mesg(reload_success, enter);
wgetch(win[KEY].p);
}
if (notify_bar())
notify_start_main_thread();