- Excellon UI: fixed plot checkbox performing an extra plot function which was not required

This commit is contained in:
Marius Stanciu
2020-07-21 06:12:44 +03:00
committed by Marius
parent 51290a6b8b
commit e147ef1994
2 changed files with 3 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ CHANGELOG for FlatCAM beta
- fixed MultiColor checkbox in Excellon Object to work in Legacy Mode (2D) - fixed MultiColor checkbox in Excellon Object to work in Legacy Mode (2D)
- modified the visibility change in Excellon UI to no longer do plot() when doing visibility toggle for one of the tools but only a visibility change in the shapes properties - modified the visibility change in Excellon UI to no longer do plot() when doing visibility toggle for one of the tools but only a visibility change in the shapes properties
- Excellon UI in Legacy Mode (2D): fixed the Solid checkbox functionality - Excellon UI in Legacy Mode (2D): fixed the Solid checkbox functionality
- Excellon UI: fixed plot checkbox performing an extra plot function which was not required
20.07.2020 20.07.2020

View File

@@ -1053,10 +1053,10 @@ class ExcellonObject(FlatCAMObj, Excellon):
def on_autoload_db_toggled(self, state): def on_autoload_db_toggled(self, state):
self.app.defaults["excellon_autoload_db"] = True if state else False self.app.defaults["excellon_autoload_db"] = True if state else False
def on_plot_cb_click(self, *args): def on_plot_cb_click(self, val):
if self.muted_ui: if self.muted_ui:
return return
self.plot() # self.plot()
self.read_form_item('plot') self.read_form_item('plot')
self.ui_disconnect() self.ui_disconnect()
@@ -1067,7 +1067,6 @@ class ExcellonObject(FlatCAMObj, Excellon):
table_cb.setChecked(True) table_cb.setChecked(True)
else: else:
table_cb.setChecked(False) table_cb.setChecked(False)
self.ui_connect() self.ui_connect()
def on_plot_cb_click_table(self): def on_plot_cb_click_table(self):