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:
parent
6aa21da8c6
commit
b32adc8b7b
@ -257,6 +257,9 @@ static inline void key_generic_save(void)
|
|||||||
static inline void key_generic_reload(void)
|
static inline void key_generic_reload(void)
|
||||||
{
|
{
|
||||||
char *msg_um_asktype = NULL;
|
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()) {
|
if (io_get_modified()) {
|
||||||
const char *msg_um_prefix =
|
const char *msg_um_prefix =
|
||||||
@ -335,6 +338,11 @@ static inline void key_generic_reload(void)
|
|||||||
ui_todo_load_items();
|
ui_todo_load_items();
|
||||||
ui_todo_sel_reset();
|
ui_todo_sel_reset();
|
||||||
|
|
||||||
|
if (conf.system_dialogs) {
|
||||||
|
status_mesg(reload_success, enter);
|
||||||
|
wgetch(win[KEY].p);
|
||||||
|
}
|
||||||
|
|
||||||
if (notify_bar())
|
if (notify_bar())
|
||||||
notify_start_main_thread();
|
notify_start_main_thread();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user