mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 10:54:15 +02:00
restart is not required when changing enabled gems
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user