restart is not required when changing enabled gems

This commit is contained in:
Vinicius Moreira
2019-09-16 19:09:05 -03:00
parent 227e417491
commit c1410ca9b6
22 changed files with 183 additions and 127 deletions

View File

@@ -134,10 +134,24 @@ class SoftwareManager(ABC):
@abstractmethod
def is_enabled(self) -> bool:
"""
:return: if the instance is available to perform actions
:return: if the instance is enabled
"""
pass
@abstractmethod
def set_enabled(self, enabled: bool):
"""
:param enabled:
:return:
"""
pass
@abstractmethod
def can_work(self) -> bool:
"""
:return: if the instance can work based on what is installed in the user's machine.
"""
def cache_to_disk(self, pkg: SoftwarePackage, icon_bytes: bytes, only_icon: bool):
"""
Saves the package data to the hard disk.

View File

@@ -28,7 +28,7 @@ class InputOption:
Represents a select component option.
"""
def __init__(self, label: str, value: str, tooltip: str = None, icon_path: str = None):
def __init__(self, label: str, value: object, tooltip: str = None, icon_path: str = None):
"""
:param label: the string that will be shown to the user
:param value: the option value (not shown)