Fix: File Browser using asset indexer after Asset Browser was visible

When toggling to a File Browser from an Asset Browesr, the asset indexer
would be used to load files. I couldn't spot issues with that on a
quick look, but this should still be corrected.
This commit is contained in:
Julian Eisel 2022-01-19 20:43:31 +01:00
parent 293aab2253
commit e7db1247b1
1 changed files with 1 additions and 2 deletions

View File

@ -1877,8 +1877,6 @@ FileList *filelist_new(short type)
p->filelist.nbr_entries = FILEDIR_NBR_ENTRIES_UNSET;
filelist_settype(p, type);
p->indexer = &file_indexer_noop;
return p;
}
@ -1890,6 +1888,7 @@ void filelist_settype(FileList *filelist, short type)
filelist->type = type;
filelist->tags = 0;
filelist->indexer = &file_indexer_noop;
switch (filelist->type) {
case FILE_MAIN:
filelist->check_dir_fn = filelist_checkdir_main;