- optimized the toggle of annotations; now there is no need to replot the entire CNCJob object too on toggling of the annotations
- on toggling off the plot visibility the annotations are turned off too - updated translations; Russian translation at 76% (using Yandex translator engine - needs verification by a native speaker of Russian) - RELEASE 8.919
This commit is contained in:
@@ -5928,13 +5928,19 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob):
|
||||
self.shapes.clear(update=True)
|
||||
self.annotation.clear(update=True)
|
||||
|
||||
if self.ui.annotation_cb.get_value() and self.ui.plot_cb.get_value():
|
||||
self.app.plotcanvas.text_collection.enabled = True
|
||||
else:
|
||||
self.app.plotcanvas.text_collection.enabled = False
|
||||
|
||||
def on_annotation_change(self):
|
||||
if self.ui.annotation_cb.get_value():
|
||||
self.app.plotcanvas.text_collection.enabled = True
|
||||
else:
|
||||
self.app.plotcanvas.text_collection.enabled = False
|
||||
kind = self.ui.cncplot_method_combo.get_value()
|
||||
self.plot(kind=kind)
|
||||
# kind = self.ui.cncplot_method_combo.get_value()
|
||||
# self.plot(kind=kind)
|
||||
self.annotation.redraw()
|
||||
|
||||
def convert_units(self, units):
|
||||
factor = CNCjob.convert_units(self, units)
|
||||
|
||||
Reference in New Issue
Block a user