diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-09 18:22:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-09 18:22:03 +0400 |
commit | 49585914e24c781154029f8b02e5f5ba12ca3437 (patch) | |
tree | 8bd060bb7edcf33b0a5e4df25d69d94a58506c50 /release/scripts/ui/space_userpref.py | |
parent | 9bdb7b5ffabfa22174d3ce9d6c96a092715a6cf9 (diff) |
fix for addons UI with recent rna changes,
also moved temp properties from the scene into the window manager since they are not saved there.
Diffstat (limited to 'release/scripts/ui/space_userpref.py')
-rw-r--r-- | release/scripts/ui/space_userpref.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 678a66d7e37..7753fe71c94 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -912,20 +912,20 @@ class USERPREF_PT_addons(bpy.types.Panel): cats = ["All", "Enabled", "Disabled"] + sorted(cats) - bpy.types.Scene.EnumProperty(items=[(cat, cat, cat + " addons") for cat in cats], - name="Category", attr="addon_filter", description="Filter add-ons by category") - bpy.types.Scene.StringProperty(name="Search", attr="addon_search", - description="Search within the selected filter") + # use window manager ID since it wont be saved with the file + # defining every draw is stupid *FIXME* + bpy.types.WindowManager.addon_filter = bpy.props.EnumProperty(items=[(cat, cat, cat + " addons") for cat in cats], name="Category", description="Filter add-ons by category") + bpy.types.WindowManager.addon_search = bpy.props.StringProperty(name="Search", description="Search within the selected filter") split = layout.split(percentage=0.2) col = split.column() - col.prop(context.scene, "addon_filter", text="Filter", expand=True) - col.prop(context.scene, "addon_search", text="", icon='VIEWZOOM') + col.prop(context.window_manager, "addon_filter", text="Filter", expand=True) + col.prop(context.window_manager, "addon_search", text="", icon='VIEWZOOM') col = split.column() - filter = context.scene.addon_filter - search = context.scene.addon_search.lower() + filter = context.window_manager.addon_filter + search = context.window_manager.addon_search.lower() for mod, info in addons: module_name = mod.__name__ |