Fix some things that I broke and further cleanup

This commit is contained in:
David Robertson
2020-04-29 02:46:52 +01:00
parent 72c2dd5f26
commit a05c174ec8
41 changed files with 314 additions and 308 deletions

View File

@@ -710,7 +710,7 @@ class ToolPaint(FlatCAMTool, Gerber):
FlatCAMTool.install(self, icon, separator, shortcut='Alt+P', **kwargs)
def run(self, toggle=True):
self.app.report_usage("ToolPaint()")
self.app.defaults.report_usage("ToolPaint()")
log.debug("ToolPaint().run() was launched ...")
if toggle:
@@ -1374,7 +1374,7 @@ class ToolPaint(FlatCAMTool, Gerber):
# init values for the next usage
self.reset_usage()
self.app.report_usage("on_paint_button_click")
self.app.defaults.report_usage("on_paint_button_click")
# self.app.call_source = 'paint'
self.select_method = self.selectmethod_combo.get_value()