Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-10-04 00:18:04 +0300
committerJulian Eisel <julian@blender.org>2021-10-04 00:18:04 +0300
commit3b1a2430391a6c1e0ea2744cfce2cf0749c72c85 (patch)
tree43b5818e3dda9b0a8d3c133b4d3ab73b06373717 /source/blender/editors/space_file/filelist.c
parent2305f270c582c7771c20d5f8b50ce8e13b48edd0 (diff)
Cleanup: Rename file-list function to better match what it's doing
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index bdf61e792d3..0cb587c3b19 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -490,7 +490,7 @@ static void filelist_readjob_main_assets(struct FileListReadJob *job_params,
static int groupname_to_code(const char *group);
static uint64_t groupname_to_filter_id(const char *group);
-static void filelist_filter_clear(FileList *filelist);
+static void filelist_tag_needs_filtering(FileList *filelist);
static void filelist_cache_clear(FileListEntryCache *cache, size_t new_size);
/* ********** Sort helpers ********** */
@@ -720,7 +720,7 @@ void filelist_sort(struct FileList *filelist)
sort_cb,
&(struct FileSortData){.inverted = (filelist->flags & FL_SORT_INVERT) != 0});
- filelist_filter_clear(filelist);
+ filelist_tag_needs_filtering(filelist);
filelist->flags &= ~FL_NEED_SORTING;
}
}
@@ -970,7 +970,7 @@ static bool is_filtered_main_assets(FileListInternEntry *file,
is_filtered_asset(file, filter);
}
-static void filelist_filter_clear(FileList *filelist)
+static void filelist_tag_needs_filtering(FileList *filelist)
{
filelist->flags |= FL_NEED_FILTERING;
}
@@ -1078,7 +1078,7 @@ void filelist_setfilter_options(FileList *filelist,
if (update) {
/* And now, free filtered data so that we know we have to filter again. */
- filelist_filter_clear(filelist);
+ filelist_tag_needs_filtering(filelist);
}
}
@@ -1105,7 +1105,7 @@ void filelist_set_asset_catalog_filter_options(
}
if (update) {
- filelist_filter_clear(filelist);
+ filelist_tag_needs_filtering(filelist);
}
}
@@ -1831,7 +1831,7 @@ void filelist_clear_ex(struct FileList *filelist,
return;
}
- filelist_filter_clear(filelist);
+ filelist_tag_needs_filtering(filelist);
if (do_cache) {
filelist_cache_clear(&filelist->filelist_cache, filelist->filelist_cache.size);