appimage history | history panel can now be maximized

This commit is contained in:
Vinicius Moreira
2019-10-08 13:33:10 -03:00
parent 2e2c6bab90
commit 66a1e91f76
8 changed files with 71 additions and 27 deletions

View File

@@ -4,7 +4,7 @@ from bauh.api.abstract.model import SoftwarePackage
from bauh.commons import resource
from bauh.gems.appimage import ROOT_DIR, INSTALLATION_PATH
CACHED_ATTRS = {'name', 'description', 'version', 'url_download', 'author', 'license', 'source', 'icon_path'}
CACHED_ATTRS = {'name', 'description', 'version', 'url_download', 'author', 'license', 'source', 'icon_path', 'github'}
class AppImage(SoftwarePackage):
@@ -22,12 +22,14 @@ class AppImage(SoftwarePackage):
self.icon_path = icon_path
self.author = author
def __repr__(self):
return "{} (name={}, github={})".format(self.__class__.__name__, self.name, self.github)
def can_be_installed(self):
return not self.installed and self.url_download
def has_history(self):
# TODO
return False
return self.installed
def has_info(self):
return True