Explorar o código

Fix bug with createMode sensitivity

The button should not track the drawing signal, it should always be
disabled in draw mode.
Michael Pitidis %!s(int64=13) %!d(string=hai) anos
pai
achega
fe14f007bc
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      labelme.py

+ 0 - 1
labelme.py

@@ -418,7 +418,6 @@ class MainWindow(QMainWindow, WindowMixin):
 
     def toggleDrawingSensitive(self, drawing=True):
         """In the middle of drawing, toggling between modes should be disabled."""
-        self.actions.createMode.setEnabled(not drawing)
         self.actions.editMode.setEnabled(not drawing)
         if not drawing and self.beginner():
             # Cancel creation.