diff --git a/mainwindow.py b/mainwindow.py index d9328bc..bd6089b 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -621,7 +621,9 @@ def populate_footprint_list(self, *_): ) if detail: part[4] = detail[0][2] - part[5] = detail[0][1] + if part[5] != str(detail[0][1]): + part[5] = str(detail[0][1]) + self.store.set_stock(part[0], detail[0][1]) # First check if the part name mathes for regex, correction in corrections: if re.search(regex, str(part[1])):