From b32adc8b7bfca416de3e8179cae9d1cbdbc29355 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 28 Jul 2014 12:50:57 +0200 Subject: Show system dialog after reloading items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: HÃ¥kan Jerning Signed-off-by: Lukas Fleischer --- src/calcurse.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/calcurse.c b/src/calcurse.c index 2e015b4..743f37d 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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(); -- cgit v1.2.3-70-g09d2