Merge branch 'blender-v4.2-release'
This commit is contained in:
commit
d97b7f4cd6
@ -3310,6 +3310,8 @@ class EXTENSIONS_OT_userpref_show_for_update(Operator):
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
def execute(self, context):
|
||||
from .bl_extension_ui import tags_clear
|
||||
|
||||
wm = context.window_manager
|
||||
prefs = context.preferences
|
||||
|
||||
@ -3319,6 +3321,10 @@ class EXTENSIONS_OT_userpref_show_for_update(Operator):
|
||||
wm.extension_show_panel_installed = True
|
||||
wm.extension_show_panel_available = False
|
||||
|
||||
# Clear other filtering option.
|
||||
wm.extension_search = ""
|
||||
tags_clear(wm, "extension_tags")
|
||||
|
||||
bpy.ops.screen.userpref_show('INVOKE_DEFAULT')
|
||||
|
||||
return {'FINISHED'}
|
||||
|
@ -2028,6 +2028,17 @@ def tags_current(wm, tags_attr):
|
||||
return tags
|
||||
|
||||
|
||||
def tags_clear(wm, tags_attr):
|
||||
import idprop
|
||||
tags_idprop = wm.get(tags_attr)
|
||||
if tags_idprop is None:
|
||||
pass
|
||||
elif isinstance(tags_idprop, idprop.types.IDPropertyGroup):
|
||||
tags_idprop.clear()
|
||||
else:
|
||||
wm[tags_attr] = {}
|
||||
|
||||
|
||||
def tags_refresh(wm, tags_attr):
|
||||
import idprop
|
||||
tags_idprop = wm.get(tags_attr)
|
||||
|
Loading…
Reference in New Issue
Block a user