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:
Lukas Fleischer
2014-07-09 00:31:57 +02:00
parent 00ceca6000
commit cac973fee3
3 changed files with 8 additions and 0 deletions

View File

@@ -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);