Added saveing to corner case of at

This commit is contained in:
Patrick Lipka 2021-12-17 16:18:49 +01:00
parent 3f993fdab0
commit e30e009537
1 changed files with 1 additions and 0 deletions

View File

@ -499,6 +499,7 @@ void command_at(std::string input, int wtime, ProjectList *proj_list){
if(id >= 0){ if(id >= 0){
proj->tasks[id].add_time(wtime); proj->tasks[id].add_time(wtime);
std::cout << wtime << "s added to task " << proj->name << "/" << proj->tasks[id].name << std::endl; std::cout << wtime << "s added to task " << proj->name << "/" << proj->tasks[id].name << std::endl;
command_save(proj_list);
}else{ }else{
std::cout << "Task " << underscore_to_space(input) << " does not exist." << std::endl; std::cout << "Task " << underscore_to_space(input) << " does not exist." << std::endl;
} }