Cleanup: Improve internal asset shelf function name

Be a bit more clear about what this is doing. It's now more obvious what
part of the UI this belongs to.
This commit is contained in:
Julian Eisel
2023-09-15 12:56:44 +02:00
parent 5d77d8d832
commit 4fff53d9ef

View File

@@ -627,7 +627,7 @@ static uiBut *add_tab_button(uiBlock &block, StringRefNull name)
return but;
}
static void add_catalog_toggle_buttons(AssetShelfSettings &shelf_settings, uiLayout &layout)
static void add_catalog_tabs(AssetShelfSettings &shelf_settings, uiLayout &layout)
{
uiBlock *block = uiLayoutGetBlock(&layout);
@@ -685,7 +685,7 @@ static void asset_shelf_header_draw(const bContext *C, Header *header)
PointerRNA shelf_ptr = shelf::active_shelf_ptr_from_context(C);
AssetShelf *shelf = static_cast<AssetShelf *>(shelf_ptr.data);
if (shelf) {
add_catalog_toggle_buttons(shelf->settings, *layout);
add_catalog_tabs(shelf->settings, *layout);
}
uiItemSpacer(layout);