Преглед изворни кода

- 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 година
родитељ
комит
41e471d9d5
1 измењених фајлова са 2 додато и 2 уклоњено
  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):
         """