mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
idk events are thread
This commit is contained in:
parent
3b3e1748dd
commit
70d783c299
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue