mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
Add Source creation/edition + Add missing edit forms for tasks and events
This commit is contained in:
parent
f1ac8a42d1
commit
a15c23bb21
24 changed files with 358 additions and 205 deletions
13
external/mirai-core/src/View.cpp
vendored
13
external/mirai-core/src/View.cpp
vendored
|
@ -84,12 +84,13 @@ void View::update()
|
|||
}
|
||||
|
||||
// day's events
|
||||
auto sourceEvents = day.events() | std::ranges::views::filter([&](const Event &event) {
|
||||
return (day.date() >= todayDate) ||
|
||||
findFirst(event.queryTasks(), [&](const Task &task) {
|
||||
return task.checked() == false;
|
||||
}).has_value();
|
||||
});
|
||||
auto sourceEvents =
|
||||
day.events() | std::ranges::views::filter([&](const Event &event) {
|
||||
return (!shouldHideCompletedTasks() || day.date() >= todayDate) ||
|
||||
findFirst(event.queryTasks(), [&](const Task &task) {
|
||||
return task.checked() == false;
|
||||
}).has_value();
|
||||
});
|
||||
|
||||
if (day.date() >= todayDate || std::ranges::distance(sourceEvents) > 0) {
|
||||
if (!dates.contains(day.date())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue