Frictions: display reach name in addition to the rk in combobox

This commit is contained in:
Dylan Jeannin committed 2026-10-26 11:50:22 +01:00
1 parent 4d9c4cb5d0
commit 03979a8bea
1 file changed
+11 -1
+11 -1
View File
@@ -105,8 +105,18 @@ class ComboBoxDelegate(QItemDelegate):
strickler
)
elif self._mode == "rk":
if self._data is None:
self.editor.addItems(
list(map(str, self._data.reach.get_rk()))
["-"]
)
else:
self.editor.addItems(
list(
map(
lambda p: p.display_name(),
self._data.reach.profiles
)
)
)
self.editor.setCurrentText(str(index.data(Qt.DisplayRole)))