summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-28 12:50:57 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-28 12:51:14 +0200
commitb32adc8b7bfca416de3e8179cae9d1cbdbc29355 (patch)
treee724e22dd738dab4e33ac517635cd7964e733d8e /src/calcurse.c
parent6aa21da8c6512110c4ecdcd7e73ed37262ca6cf9 (diff)
downloadcalcurse-b32adc8b7bfca416de3e8179cae9d1cbdbc29355.zip
Show system dialog after reloading items
Suggested-by: HÃ¥kan Jerning <jerning@home.se> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c8
1 files changed, 8 insertions, 0 deletions
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();