소스 검색

- 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):