mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[view] improvement: displaying a tooltip with the missing dependencies for a supported packaging technology
This commit is contained in:
@@ -253,8 +253,8 @@ class SnapManager(SoftwareManager):
|
||||
def set_enabled(self, enabled: bool):
|
||||
self.enabled = enabled
|
||||
|
||||
def can_work(self) -> bool:
|
||||
return snap.is_installed()
|
||||
def can_work(self) -> Tuple[bool, Optional[str]]:
|
||||
return (True, None) if snap.is_installed() else (False, self.i18n['missing_dep'].format(dep=bold('snap')))
|
||||
|
||||
def requires_root(self, action: SoftwareAction, pkg: SnapApplication) -> bool:
|
||||
return action not in (SoftwareAction.PREPARE, SoftwareAction.SEARCH)
|
||||
|
||||
Reference in New Issue
Block a user