diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-10 19:11:11 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-10 19:27:01 +0300 |
commit | 7dc2a5a2676ec6169a38b5e6654f46547d1080df (patch) | |
tree | 799b3a63adb6304d53effb30b2ae30c0401ce96c /release/scripts/startup/bl_operators | |
parent | 4149ee9bf65fb62c6988248ea74d89ed8262e8db (diff) |
Fix T57144: saving theme presets not working after recent changes.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/presets.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py index 59bcae2a789..9d64c02d1ca 100644 --- a/release/scripts/startup/bl_operators/presets.py +++ b/release/scripts/startup/bl_operators/presets.py @@ -242,8 +242,8 @@ class ExecutePreset(Operator): self.report({'ERROR'}, "unknown filetype: %r" % ext) return {'CANCELLED'} - if hasattr(preset_class, "pre_cb"): - preset_class.pre_cb(context) + if hasattr(preset_class, "reset_cb"): + preset_class.reset_cb(context) # execute the preset using script.python_file_run if ext == ".py": @@ -571,9 +571,6 @@ class AddPresetInterfaceTheme(AddPresetBase, Operator): preset_menu = "USERPREF_MT_interface_theme_presets" preset_subdir = "interface_theme" - def pre_cb(self, context): - bpy.ops.ui.reset_default_theme() - class AddPresetKeyconfig(AddPresetBase, Operator): """Add or remove a Key-config Preset""" |