- fixed toggling the visibility for the CNCJob objects (was in reverse to the expected state)

This commit is contained in:
Marius Stanciu
2022-03-27 22:34:36 +03:00
committed by Marius
parent c8620fd9d2
commit 481657dc4a
2 changed files with 7 additions and 2 deletions

View File

@@ -1218,12 +1218,14 @@ class CNCJobObject(FlatCAMObj, CNCjob):
"""
if self.muted_ui:
return
kind = self.ui.cncplot_method_combo.get_value()
self.plot(kind=kind)
self.read_form_item('plot')
self.ui_disconnect()
cb_flag = self.ui.plot_cb.isChecked()
# cb_flag = self.ui.plot_cb.isChecked()
cb_flag = self.obj_options['plot']
try:
for row in range(self.ui.cnc_tools_table.rowCount()):
table_cb = self.ui.cnc_tools_table.cellWidget(row, 6)
@@ -1236,6 +1238,8 @@ class CNCJobObject(FlatCAMObj, CNCjob):
pass
self.ui_connect()
self.plot(kind=kind)
def on_plot_cb_click_table(self):
"""
Handler for clicking the plot checkboxes added into a Table on each row. Purpose: toggle visibility for the