Fix tasks being unscheduled if the day for the task already exists

This commit is contained in:
Vyn 2024-10-16 11:04:30 +02:00
parent dee7a6fa42
commit 3e7c9b150a
6 changed files with 26 additions and 6 deletions

View file

@ -44,6 +44,11 @@ bool Task::hasEvent() const
return task_.eventId.has_value();
}
bool Task::hasDate() const
{
return task_.dayId.has_value();
}
void Task::setTitle(const std::string &newTitle)
{
data_->updateTask(id(), {.title = newTitle});