From bd730c82b0423af65f7148bb4abe01e1c3430691 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Sat, 9 Dec 2023 10:24:35 +1100 Subject: Do db updates on the bg worker --- src/ui/ui_fsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index f4b56a27..4a196f5d 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -399,7 +399,7 @@ void Indexing::entry() { // TODO: Hmm. return; } - db->updateIndexes(); + sServices->bg_worker().Dispatch([=]() { db->updateIndexes(); }); } void Indexing::exit() { -- cgit v1.2.3