Keyboard shortcuts for Project related actions added. Closes #13

This commit is contained in:
Anis Ahmad
2021-03-09 00:28:07 +06:00
parent ae2dc575b1
commit 0087d6ea1f
3 changed files with 25 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ func NewTaskPane(projectRepo repository.ProjectRepository, taskRepo repository.T
func (pane *TaskPane) ClearList() {
pane.list.Clear()
pane.tasks = nil
pane.activeTask = nil
pane.RemoveItem(pane.newTask)
}
@@ -160,6 +161,8 @@ func (pane *TaskPane) LoadDynamicList(logic string) {
}
projectPane.activeProject = nil
taskPane.ClearList()
if err == storm.ErrNotFound {
statusBar.showForSeconds("[yellow]No Task was scheduled for "+rangeDesc, 5)
pane.SetList(tasks)