Merge branch 'blender-v4.2-release'

This commit is contained in:
Campbell Barton 2024-07-03 16:57:15 +10:00
commit b615091256
3 changed files with 11 additions and 1 deletions

@ -3339,6 +3339,7 @@ class EXTENSIONS_OT_userpref_tags_set(Operator):
if self.value is False:
tags_refresh(wm, tags_attr, default_value=False)
_preferences_ui_redraw()
return {'FINISHED'}

@ -2096,11 +2096,12 @@ def tags_panel_draw(layout, context, tags_attr):
tags_len_half = (len(tags_sorted) + 1) // 2
split = layout.split(factor=0.5)
col = split.column()
tags_prop = getattr(wm, tags_attr)
for i, t in enumerate(sorted(tags_sorted)):
if i == tags_len_half:
col = split.column()
col.prop(
getattr(wm, tags_attr),
tags_prop,
"[\"{:s}\"]".format(escape_identifier(t)),
text=t,
text_ctxt=i18n_contexts.editor_preferences,

@ -386,6 +386,14 @@ static int preferences_extension_repo_add_exec(bContext *C, wmOperator *op)
/* There's no dedicated notifier for the Preferences. */
WM_event_add_notifier(C, NC_WINDOW, nullptr);
/* Mainly useful when adding a repository from a popup since it's not as obvious
* the repository was added compared to the repository popover. */
BKE_reportf(op->reports,
RPT_INFO,
"Added %s \"%s\"",
preferences_extension_repo_default_name_from_type(repo_type),
new_repo->name);
return OPERATOR_FINISHED;
}