Resolved issue #1 (panic on creating task without project). Added more contextual hint message.

This commit is contained in:
Anis Ahmad
2020-06-17 01:23:27 +06:00
parent 1d11651a8e
commit cc3ad9ae88
2 changed files with 20 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ func (pane *ProjectPane) addNewProject() {
if err != nil {
statusBar.showForSeconds("[red::]Failed to create Project:"+err.Error(), 5)
} else {
statusBar.showForSeconds(fmt.Sprintf("[yellow::]Project %s created. Press n to start adding new tasks.", name), 5)
statusBar.showForSeconds(fmt.Sprintf("[yellow::]Project %s created. Press n to start adding new tasks.", name), 10)
pane.projects = append(pane.projects, project)
pane.addProjectToList(len(pane.projects)-1, true)
pane.newProject.SetText("")