Jelajahi Sumber

Hide all shapes, including selections

User feedback suggests it is confusing, especially if only a single
label is present on the image.
Michael Pitidis 13 tahun lalu
induk
melakukan
406674fd2f
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      labelme.py

+ 1 - 2
labelme.py

@@ -457,8 +457,7 @@ class MainWindow(QMainWindow, WindowMixin):
     def hideLabelsToggle(self, value):
         #self.canvas.hideBackroundShapes(value)
         for item, shape in self.labels.iteritems():
-            item.setCheckState(Qt.Unchecked if value and not shape.selected\
-                               else Qt.Checked)
+            item.setCheckState(Qt.Unchecked if value else Qt.Checked)
 
     def loadFile(self, filename=None):
         """Load the specified file, or the last opened file if None."""