diff --git a/mainwindow.py b/mainwindow.py index 79322aa..1b979cf 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -812,10 +812,13 @@ def select_part(self, *_): ref = self.partlist_data_model.get_reference(item) lcsc = self.partlist_data_model.get_lcsc(item) value = self.partlist_data_model.get_value(item) - if lcsc != "": - selection[ref] = lcsc - else: - selection[ref] = value + footprint = self.partlist_data_model.get_footprint(item) + if ref.startswith("R"): + value += "Ω" + m = re.search(r"_(\d+)_\d+Metric", footprint) + if m: + value += f" {m.group(1)}" + selection[ref] = value PartSelectorDialog(self, selection).ShowModal() def check_order_number(self):