addon_utils default mismatch /w enable/disable

default_set argument is now False for both.
This commit is contained in:
Campbell Barton
2015-06-14 05:12:45 +10:00
parent 75a86d6a8e
commit 1c81bcffde
4 changed files with 7 additions and 7 deletions

View File

@@ -1788,7 +1788,7 @@ class WM_OT_addon_disable(Operator):
err_str = traceback.format_exc()
print(err_str)
addon_utils.disable(self.module, handle_error=err_cb)
addon_utils.disable(self.module, default_set=True, handle_error=err_cb)
if err_str:
self.report({'ERROR'}, err_str)
@@ -2004,7 +2004,7 @@ class WM_OT_addon_install(Operator):
# disable any addons we may have enabled previously and removed.
# this is unlikely but do just in case. bug [#23978]
for new_addon in addons_new:
addon_utils.disable(new_addon)
addon_utils.disable(new_addon, default_set=True)
# possible the zip contains multiple addons, we could disallow this
# but for now just use the first
@@ -2068,7 +2068,7 @@ class WM_OT_addon_remove(Operator):
return {'CANCELLED'}
# in case its enabled
addon_utils.disable(self.module)
addon_utils.disable(self.module, default_set=True)
import shutil
if isdir: