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:
parent
619b53eaca
commit
f9a006d092
4 changed files with 19 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue