Merge remote-tracking branch 'origin/pr/248'

* origin/pr/248:
  Added more description to applications in VM Settings
This commit is contained in:
Marek Marczykowski-Górecki 2020-07-15 18:34:42 +02:00
commit db0e81a975
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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