浏览代码

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

Marius Stanciu 5 年之前
父节点
当前提交
e147ef1994
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 0
      CHANGELOG.md
  2. 2 3
      appObjects/FlatCAMExcellon.py

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@ CHANGELOG for FlatCAM beta
 - 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
 - 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
 

+ 2 - 3
appObjects/FlatCAMExcellon.py

@@ -1053,10 +1053,10 @@ class ExcellonObject(FlatCAMObj, Excellon):
     def on_autoload_db_toggled(self, state):
         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:
             return
-        self.plot()
+        # self.plot()
         self.read_form_item('plot')
 
         self.ui_disconnect()
@@ -1067,7 +1067,6 @@ class ExcellonObject(FlatCAMObj, Excellon):
                 table_cb.setChecked(True)
             else:
                 table_cb.setChecked(False)
-
         self.ui_connect()
 
     def on_plot_cb_click_table(self):