mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
fix: not showing app disk cached description when listing installed apps
This commit is contained in:
@@ -4,9 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
## [0.4.1]
|
## [0.4.1] - 2019-07-25
|
||||||
### Improvements
|
### Improvements
|
||||||
- retrieving some Snaps data (icon, description and confinement) through Ubuntu API instead of Snap Store
|
- retrieving some Snaps data (icon, description and confinement) through Ubuntu API instead of Snap Store
|
||||||
|
### Fixes:
|
||||||
|
- not showing app disk cached description when listing installed apps
|
||||||
|
|
||||||
## [0.4.0] - 2019-07-25
|
## [0.4.0] - 2019-07-25
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -74,8 +74,7 @@ class SnapManager(ApplicationManager):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def read_installed(self, disk_loader: DiskCacheLoader) -> List[SnapApplication]:
|
def read_installed(self, disk_loader: DiskCacheLoader) -> List[SnapApplication]:
|
||||||
res = [self.map_json(app_json, installed=True, disk_loader=disk_loader) for app_json in snap.read_installed()]
|
return [self.map_json(app_json, installed=True, disk_loader=disk_loader) for app_json in snap.read_installed()]
|
||||||
return res
|
|
||||||
|
|
||||||
def downgrade_app(self, app: Application, root_password: str) -> FpakmanProcess:
|
def downgrade_app(self, app: Application, root_password: str) -> FpakmanProcess:
|
||||||
return FpakmanProcess(subproc=snap.downgrade_and_stream(app.base_data.name, root_password), wrong_error_phrase=None)
|
return FpakmanProcess(subproc=snap.downgrade_and_stream(app.base_data.name, root_password), wrong_error_phrase=None)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class ApplicationView:
|
|||||||
|
|
||||||
def get_async_attr(self, attr: str, strip_html: bool = False, default: str = '...'):
|
def get_async_attr(self, attr: str, strip_html: bool = False, default: str = '...'):
|
||||||
|
|
||||||
if self.model.is_library():
|
if getattr(self.model.base_data, attr) is not None or self.model.is_library():
|
||||||
res = getattr(self.model.base_data, attr)
|
res = getattr(self.model.base_data, attr)
|
||||||
else:
|
else:
|
||||||
res = getattr(self.model.base_data, attr) if self.model.status == ApplicationStatus.READY and getattr(self.model.base_data, attr) else default
|
res = getattr(self.model.base_data, attr) if self.model.status == ApplicationStatus.READY and getattr(self.model.base_data, attr) else default
|
||||||
|
|||||||
Reference in New Issue
Block a user