From 32bc3241181eaf69fc692c8485f2c63b99735812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Mon, 17 Feb 2020 17:55:54 -0300 Subject: [PATCH] [improvement][ui] treating multiple lines on the application's description displayed on the table --- CHANGELOG.md | 3 +++ bauh/view/qt/apps_table.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e91fb2d9..b5dc3a57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ 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/). ## [0.8.4] - 2020-02 +### Improvements +- UI: + - treating multiple lines on the application's description displayed on the table ### Fixes - Snap - not able to launch applications on some distros ( e.g: OpenSuse ) diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index b14b53f9..b6dae8c6 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -381,7 +381,7 @@ class AppsTable(QTableWidget): item.setMinimumWidth(300) if pkg.model.description is not None or not pkg.model.is_application() or pkg.model.status == PackageStatus.READY: - desc = pkg.model.description + desc = pkg.model.description.split('\n')[0] else: desc = '...'