1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:08:10 +00:00

Mail: Mark mail as seen after open

This commit is contained in:
Karol Kosek 2023-07-11 20:24:03 +02:00 committed by Sam Atkins
parent 619b53eaca
commit f9a006d092
4 changed files with 19 additions and 2 deletions

View file

@ -13,6 +13,12 @@ InboxModel::InboxModel(Vector<InboxEntry> entries)
{
}
void InboxModel::set_seen(int row, bool seen)
{
m_entries[row].seen = seen;
did_update(DontInvalidateIndices);
}
int InboxModel::row_count(GUI::ModelIndex const&) const
{
return m_entries.size();