summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-12-09 10:24:35 +1100
committerjacqueline <me@jacqueline.id.au>2023-12-09 10:24:35 +1100
commitbd730c82b0423af65f7148bb4abe01e1c3430691 (patch)
treeee5ea481b6ac9315fa53075c9932f4e5e2876720 /src/ui/ui_fsm.cpp
parentca5d7b867c381b7886a660ce744df0b74f38b2e6 (diff)
downloadtangara-fw-bd730c82b0423af65f7148bb4abe01e1c3430691.tar.gz
Do db updates on the bg worker
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp2
1 files changed, 1 insertions, 1 deletions
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<void>([=]() { db->updateIndexes(); });
}
void Indexing::exit() {