Jelajahi Sumber

- changed the self.info() functions to signal self.inform.emit() and
the signal is emitted only once per operation not for each object in
selection.

Marius Stanciu 7 tahun lalu
induk
melakukan
41e471d9d5
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      FlatCAMApp.py

+ 2 - 2
FlatCAMApp.py

@@ -1526,7 +1526,7 @@ class App(QtCore.QObject):
             for obj in obj_list:
                 obj.mirror('X', [px, py])
                 obj.plot()
-                self.info('Flipped on the X axis ...')
+            self.inform.emit('Flipped on the X axis ...')
 
     def on_flipy(self):
         obj_list = self.collection.get_selected()
@@ -1567,7 +1567,7 @@ class App(QtCore.QObject):
             for obj in obj_list:
                 obj.mirror('Y', [px, py])
                 obj.plot()
-                self.info('Flipped on the Y axis ...')
+            self.inform.emit('Flipped on the Y axis ...')
 
     def on_delete(self):
         """