Clean up action button display, and add enabling/disabling

This commit is contained in:
Ellwood Zwovic
2017-07-26 23:36:14 -07:00
parent 8386d6ecb9
commit 57ff2a5664
3 changed files with 213 additions and 82 deletions

View File

@@ -18,8 +18,10 @@ class Package:
self.set_from_dict(package_dict)
self.installed = False
self.enabled = False
self.repository = None
self.installed_location = None
self.module_name = None
def to_dict(self) -> dict:
"""
@@ -162,6 +164,7 @@ class Package:
pkg = cls()
pkg.files = [filepath.name]
pkg.installed_location = str(filepath)
pkg.module_name = module.__name__
try:
pkg.bl_info = module.bl_info