mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-04 10:43:19 +00:00
Fix tasks being unscheduled if the day for the task already exists
This commit is contained in:
parent
dee7a6fa42
commit
3e7c9b150a
6 changed files with 26 additions and 6 deletions
5
external/mirai-core/src/Task.cpp
vendored
5
external/mirai-core/src/Task.cpp
vendored
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue