def list_warnings(self, internet_available: bool) -> List[str]: if flatpak.is_installed(): if not flatpak.has_remotes_set(): return [ self.i18n['flatpak.notification.no_remotes'], self.i18n['flatpak.notification.disable'].format( bold('Flatpak'), bold(self.i18n['manage_window.settings.gems'])) ]
def can_work(self) -> bool: return flatpak.is_installed()
def list_warnings(self) -> List[str]: if flatpak.is_installed(): if not flatpak.has_remotes_set(): return [self.i18n['flatpak.notification.no_remotes']]
def can_work(self) -> Tuple[bool, Optional[str]]: return (True, None) if flatpak.is_installed() else (False, self.i18n['missing_dep'].format(dep=bold('flatpak')))