Added more description to applications in VM Settings
Sometimes only the .desktop filename distinguishes between applications, so now the tooltip will list that filename
This commit is contained in:
parent
a6a7560bab
commit
fabd601f49
@ -28,8 +28,12 @@ from PyQt5 import QtWidgets, QtCore # pylint: disable=import-error
|
|||||||
class AppListWidgetItem(QtWidgets.QListWidgetItem):
|
class AppListWidgetItem(QtWidgets.QListWidgetItem):
|
||||||
def __init__(self, name, ident, tooltip=None, parent=None):
|
def __init__(self, name, ident, tooltip=None, parent=None):
|
||||||
super(AppListWidgetItem, self).__init__(name, parent)
|
super(AppListWidgetItem, self).__init__(name, parent)
|
||||||
if tooltip:
|
additional_description = ".desktop filename: " + str(ident)
|
||||||
self.setToolTip(tooltip)
|
if not tooltip:
|
||||||
|
tooltip = additional_description
|
||||||
|
else:
|
||||||
|
tooltip += "\n" + additional_description
|
||||||
|
self.setToolTip(tooltip)
|
||||||
self.ident = ident
|
self.ident = ident
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user