Implement watched toggle for films in details modal

- Watched status is stored in the local database
- Gave details modals a set size
- Added a for now useless play button to film details modal
This commit is contained in:
Reinout Meliesie 2026-01-24 18:25:59 +01:00
commit 629f2ba9d0
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
5 changed files with 135 additions and 19 deletions

View file

@ -79,9 +79,10 @@ impl SqliteManager {
move |connection| {
connection.execute(
"
update watched_status
set watched = :watched
where watched_status.media_uuid is :uuid
insert into watched_status (media_uuid, watched)
values (:uuid, :watched)
on conflict (media_uuid) do
update set watched = :watched
",
named_params! { ":uuid": uuid, ":watched": watched },
)?;