diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 03653a998f824ac66d30a67260e704b67b03e7c3..dff543f5fea51bcc5895538ed2ba134fb3ed41c4 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -1230,6 +1230,7 @@ class MainWindow(QMainWindow): self.keyList.addItem(item) rgb = self._get_rgb_by_label(key_text, self.kie_mode) self.keyList.setItemLabel(item, key_text, rgb) + self.keyDialog.addLabelHistory(key_text) def _update_shape_color(self, shape): r, g, b = self._get_rgb_by_label(shape.label)