Merge pull request #1044 from flowln/better_orphan_fix

This commit is contained in:
Sefa Eyeoglu
2022-08-20 12:50:43 +02:00
parent d68d5ca23f
commit c116885ab1
4 changed files with 18 additions and 10 deletions

View File

@ -63,6 +63,9 @@ void ModFolderModel::startWatching()
if(is_watching)
return;
// Remove orphaned metadata next time
m_first_folder_load = true;
update();
// Watch the mods folder
@ -113,7 +116,8 @@ bool ModFolderModel::update()
}
auto index_dir = indexDir();
auto task = new ModFolderLoadTask(dir(), index_dir, m_is_indexed);
auto task = new ModFolderLoadTask(dir(), index_dir, m_is_indexed, m_first_folder_load);
m_first_folder_load = false;
m_update = task->result();