mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-16 15:23:19 +00:00
Improve startup time
This commit is contained in:
parent
d90bfbc483
commit
597ea0ac2d
10 changed files with 82 additions and 23 deletions
|
@ -59,7 +59,6 @@ void TasksFile::addTask(TaskItemData taskItem)
|
|||
{
|
||||
tasks.push_back(std::make_unique<TaskItem>(this, taskItem));
|
||||
setDirty(true);
|
||||
sortByDate();
|
||||
}
|
||||
|
||||
void TasksFile::addTask(std::string text, std::string date)
|
||||
|
@ -68,7 +67,6 @@ void TasksFile::addTask(std::string text, std::string date)
|
|||
TaskItem{this, {.text = text, .state = TODO, .date = date == "" ? "No date" : date}}
|
||||
);
|
||||
tasks.push_back(std::move(newTask));
|
||||
sortByDate();
|
||||
}
|
||||
|
||||
void TasksFile::removeTask(const TaskItem *taskToRemove)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue