Преглед на файлове

Update check state of the annotated image in saveLabels

Kentaro Wada преди 7 години
родител
ревизия
d264431467
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      labelme/app.py

+ 4 - 0
labelme/app.py

@@ -787,6 +787,10 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
                 flags=flags,
             )
             self.labelFile = lf
+            item = self.fileListWidget.findItems(
+                self.imagePath, Qt.MatchExactly
+            )[0]
+            item.setCheckState(Qt.Checked)
             # disable allows next and previous image to proceed
             # self.filename = filename
             return True