Refactored StatusBar - changed into a type, other small fixes

This commit is contained in:
Anis Ahmad
2020-06-08 01:05:17 +06:00
parent 62d04b2963
commit a6af1a617a
9 changed files with 82 additions and 55 deletions

View File

@@ -29,7 +29,7 @@ func deleteCurrentProject() {
_ = taskRepo.Delete(&tasks[i])
}
showMessage("Removed Project: " + currentProject.Title)
statusBar.showForSeconds("[lime]Removed Project: "+currentProject.Title, 5)
removeThirdCol()
taskList.Clear()
projectList.Clear()
@@ -46,5 +46,5 @@ func clearCompletedTasks() {
count++
}
}
showMessage(fmt.Sprintf("[yellow]%d tasks cleared!", count))
statusBar.showForSeconds(fmt.Sprintf("[yellow]%d tasks cleared!", count), 5)
}