From e30e009537543253a3c2063179ab4f48bbe0c7f0 Mon Sep 17 00:00:00 2001 From: Patrick Lipka Date: Fri, 17 Dec 2021 16:18:49 +0100 Subject: [PATCH] Added saveing to corner case of at --- src/ui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui.cpp b/src/ui.cpp index 4efe209..0b526a7 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -499,6 +499,7 @@ void command_at(std::string input, int wtime, ProjectList *proj_list){ if(id >= 0){ proj->tasks[id].add_time(wtime); std::cout << wtime << "s added to task " << proj->name << "/" << proj->tasks[id].name << std::endl; + command_save(proj_list); }else{ std::cout << "Task " << underscore_to_space(input) << " does not exist." << std::endl; }