From 2e2c6bab903ae560f532d15e23fece0ab6ca114d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 7 Oct 2019 18:55:18 -0300 Subject: [PATCH] fix: app description with '...' even when it is short --- bauh/gems/appimage/controller.py | 1 - bauh/view/qt/apps_table.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index c7f35c07..33c95a75 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -105,7 +105,6 @@ class AppImageManager(SoftwareManager): return {AppImage} def clean_cache_for(self, pkg: AppImage): - # TODO pass def get_info(self, pkg: AppImage) -> dict: diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index 966c5d51..83137db0 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -338,7 +338,7 @@ class AppsTable(QTableWidget): else: desc = '...' - if desc and desc != '...': + if desc and desc != '...' and len(desc) > 40: desc = strip_html(desc[0:40]) + '...' item.setText(desc)