mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
Add a Calendar view on the right side
This commit is contained in:
parent
a80515ff90
commit
f1ac8a42d1
18 changed files with 406 additions and 130 deletions
3
external/mirai-core/src/View.cpp
vendored
3
external/mirai-core/src/View.cpp
vendored
|
@ -43,6 +43,9 @@ std::vector<Task> View::getTasksForDate(const Date &date)
|
|||
|
||||
std::vector<Event> View::getEventsForDate(const Date &date)
|
||||
{
|
||||
if (!dates.contains(date)) {
|
||||
return {};
|
||||
}
|
||||
return dates.at(date).events;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue