Reload tasks when pressing 'r'
This commit is contained in:
parent
3f88a247ce
commit
9fc57bd056
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ taskEditBehavior edit s e = do
|
||||||
B.continue s{taskEdit=Just newEdit}
|
B.continue s{taskEdit=Just newEdit}
|
||||||
|
|
||||||
taskListBehavior :: UIState -> VTY.Event -> NewState
|
taskListBehavior :: UIState -> VTY.Event -> NewState
|
||||||
|
-- Reload while running
|
||||||
|
taskListBehavior s (VTY.EvKey (VTY.KChar 'r') []) = do
|
||||||
|
newState <- liftIO $ loadTasks s
|
||||||
|
B.continue newState
|
||||||
-- Mark/unmark a task as completed
|
-- Mark/unmark a task as completed
|
||||||
taskListBehavior s (VTY.EvKey (VTY.KChar 'x') []) = undefined s
|
taskListBehavior s (VTY.EvKey (VTY.KChar 'x') []) = undefined s
|
||||||
-- Delete tasks
|
-- Delete tasks
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue