1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

HackStudio: Clear ToDo entries upon opening new project

The ToDoEntries and ToDoEntriesWidget classes now have methods for
clearing the entries, before entries would stay permanently, even after
switching to a new project.
This commit is contained in:
Lennon Donaghy 2021-08-01 21:19:26 +01:00 committed by Andreas Kling
parent d48bd49002
commit 6076deae1d
5 changed files with 16 additions and 0 deletions

View file

@ -91,6 +91,12 @@ void ToDoEntriesWidget::refresh()
m_result_view->set_model(results_model);
}
void ToDoEntriesWidget::clear()
{
ToDoEntries::the().clear_entries();
refresh();
}
ToDoEntriesWidget::ToDoEntriesWidget()
{
set_layout<GUI::VerticalBoxLayout>();