Load todo items on startup
Reload (and show) items into the list box after reading data files. Reported-by: BARE Willy sprl <barewillysprl@euphonynet.be> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
00ceca6000
commit
cac973fee3
@ -600,6 +600,8 @@ int main(int argc, char **argv)
|
||||
io_startup_screen(no_data_file);
|
||||
}
|
||||
do_storage(1);
|
||||
ui_todo_load_items();
|
||||
ui_todo_sel_reset();
|
||||
wins_slctd_set(conf.default_panel);
|
||||
wins_update(FLAG_ALL);
|
||||
|
||||
|
@ -979,6 +979,7 @@ void ui_todo_draw(int, WINDOW *, int, int, void *);
|
||||
enum listbox_row_type ui_todo_row_type(int, void *);
|
||||
int ui_todo_height(int, void *);
|
||||
void ui_todo_load_items(void);
|
||||
void ui_todo_sel_reset(void);
|
||||
void ui_todo_sel_move(int);
|
||||
void ui_todo_update_panel(int);
|
||||
void ui_todo_chg_priority(int);
|
||||
|
@ -199,6 +199,11 @@ void ui_todo_load_items(void)
|
||||
listbox_load_items(&lb_todo, n);
|
||||
}
|
||||
|
||||
void ui_todo_sel_reset(void)
|
||||
{
|
||||
listbox_sel_move(&lb_todo, 0);
|
||||
}
|
||||
|
||||
void ui_todo_sel_move(int delta)
|
||||
{
|
||||
listbox_sel_move(&lb_todo, delta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user