From fabd601f493c2a6b201c6a88b659b66f8199ce32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Tue, 14 Jul 2020 21:22:41 +0200 Subject: [PATCH] Added more description to applications in VM Settings Sometimes only the .desktop filename distinguishes between applications, so now the tooltip will list that filename --- qubesmanager/appmenu_select.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qubesmanager/appmenu_select.py b/qubesmanager/appmenu_select.py index fbff257..24a84fa 100755 --- a/qubesmanager/appmenu_select.py +++ b/qubesmanager/appmenu_select.py @@ -28,8 +28,12 @@ from PyQt5 import QtWidgets, QtCore # pylint: disable=import-error class AppListWidgetItem(QtWidgets.QListWidgetItem): def __init__(self, name, ident, tooltip=None, parent=None): super(AppListWidgetItem, self).__init__(name, parent) - if tooltip: - self.setToolTip(tooltip) + additional_description = ".desktop filename: " + str(ident) + if not tooltip: + tooltip = additional_description + else: + tooltip += "\n" + additional_description + self.setToolTip(tooltip) self.ident = ident @classmethod