ソースを参照

Added more description to applications in VM Settings

Sometimes only the .desktop filename distinguishes between applications,
so now the tooltip will list that filename
Marta Marczykowska-Górecka 3 年 前
コミット
fabd601f49
1 ファイル変更6 行追加2 行削除
  1. 6 2
      qubesmanager/appmenu_select.py

+ 6 - 2
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