Fix asset-only loading optimizatoin not working as intended

Introduced in fc7beac8d6, but I think this never worked because the
`asset_library_ref` of the temporary file-list used for reading in a
background thread is nulled. Now there's a different pointer that we can
use that works properly.
This commit is contained in:
Julian Eisel 2022-11-30 21:05:19 +01:00
parent 9f3b0e41bb
commit 5c580ff457
1 changed files with 1 additions and 1 deletions

View File

@ -3614,7 +3614,7 @@ static void filelist_readjob_recursive_dir_add_items(const bool do_lib,
}
/* Only load assets when browsing an asset library. For normal file browsing we return all
* entries. `FLF_ASSETS_ONLY` filter can be enabled/disabled by the user. */
if (filelist->asset_library_ref) {
if (filelist->asset_library) {
list_lib_options |= LIST_LIB_ASSETS_ONLY;
}
std::optional<int> lib_entries_num = filelist_readjob_list_lib(