Add an option to hide images and videos by default

Implements #658
This commit is contained in:
Tobias Fella
2024-08-23 17:07:00 +02:00
parent 72994248fa
commit c0151353c5
6 changed files with 92 additions and 5 deletions

View File

@@ -439,4 +439,14 @@ void Controller::revertToDefaultConfig()
config->save();
}
bool Controller::isImageShown(const QString &eventId)
{
return m_shownImages.contains(eventId);
}
void Controller::markImageShown(const QString &eventId)
{
m_shownImages.append(eventId);
}
#include "moc_controller.cpp"