- small fixes: selected object in Project used to ask twice for UI build; if scale factor in Object UI is 1 do nothing as there is no point in scaling with a factor of 1
This commit is contained in:
@@ -261,9 +261,13 @@ class FlatCAMObj(QtCore.QObject):
|
||||
self.app.worker_task.emit({'fcn': worker_task, 'params': []})
|
||||
|
||||
def on_scale_button_click(self):
|
||||
log.debug("FlatCAMObj.on_scale_button_click()")
|
||||
self.read_form()
|
||||
factor = self.ui.scale_entry.get_value()
|
||||
# if factor is 1.0 do nothing, there is no point in scaling with a factor of 1.0
|
||||
if factor == 1.0:
|
||||
return
|
||||
|
||||
log.debug("FlatCAMObj.on_scale_button_click()")
|
||||
|
||||
def worker_task():
|
||||
with self.app.proc_container.new(_("Scaling...")):
|
||||
|
||||
Reference in New Issue
Block a user