idk events are thread

This commit is contained in:
altalk23 2024-01-24 21:41:22 +03:00
parent 3b3e1748dd
commit 70d783c299

View file

@ -421,7 +421,9 @@ void Index::Impl::updateFromLocalTree() {
log::pushNest();
std::unique_lock<std::mutex> lock(m_itemsMutex);
IndexUpdateEvent(UpdateProgress(100, "Updating local cache")).post();
Loader::get()->queueInMainThread([](){
IndexUpdateEvent(UpdateProgress(100, "Updating local cache")).post();
});
// delete old items
m_items.clear();
lock.unlock();