From 83762720a138200621a01cb58ca80af4ba915b00 Mon Sep 17 00:00:00 2001 From: Ruben Rosario Date: Sun, 21 Jun 2026 19:26:22 +0100 Subject: [PATCH] Fix move to existing list: sync_queue list_id update + PickList filter - update_list_id now also updates sync_queue table - PickList filters out local-only UUID lists (only shows server IDs) --- src/app.rs | 1 + src/infrastructure/db.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/app.rs b/src/app.rs index 4d9c7ce..928289c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1120,6 +1120,7 @@ impl App { } 6 => { self.popup_list_indices = self.lists.iter() + .filter(|l| !l.id.contains('-')) .map(|l| (l.title.clone(), l.id.clone())) .collect(); self.popup_list_selected = 0; diff --git a/src/infrastructure/db.rs b/src/infrastructure/db.rs index 1405ab7..424aaf3 100644 --- a/src/infrastructure/db.rs +++ b/src/infrastructure/db.rs @@ -336,6 +336,10 @@ impl Db { "UPDATE tasks SET list_id = ?1 WHERE list_id = ?2", params![new_id, old_id], )?; + conn.execute( + "UPDATE sync_queue SET list_id = ?1 WHERE list_id = ?2", + params![new_id, old_id], + )?; Ok(()) }