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)
This commit is contained in:
Ruben Rosario
2026-06-21 19:26:22 +01:00
parent d669ca5c05
commit 83762720a1
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1120,6 +1120,7 @@ impl App {
} }
6 => { 6 => {
self.popup_list_indices = self.lists.iter() self.popup_list_indices = self.lists.iter()
.filter(|l| !l.id.contains('-'))
.map(|l| (l.title.clone(), l.id.clone())) .map(|l| (l.title.clone(), l.id.clone()))
.collect(); .collect();
self.popup_list_selected = 0; self.popup_list_selected = 0;
+4
View File
@@ -336,6 +336,10 @@ impl Db {
"UPDATE tasks SET list_id = ?1 WHERE list_id = ?2", "UPDATE tasks SET list_id = ?1 WHERE list_id = ?2",
params![new_id, old_id], params![new_id, old_id],
)?; )?;
conn.execute(
"UPDATE sync_queue SET list_id = ?1 WHERE list_id = ?2",
params![new_id, old_id],
)?;
Ok(()) Ok(())
} }