- small update to NCC Tool UI

This commit is contained in:
Marius Stanciu
2020-02-16 16:50:24 +02:00
committed by Marius
parent 64912949c6
commit d1408a3d2c
3 changed files with 25 additions and 15 deletions

View File

@@ -636,7 +636,7 @@ class ToolPaint(FlatCAMTool, Gerber):
self.rest_cb.stateChanged.connect(self.on_rest_machining_check)
self.box_combo_type.currentIndexChanged.connect(self.on_combo_box_type)
self.type_obj_combo.activated_custom.connect(self.on_type_obj_index_changed)
self.type_obj_combo.activated_custom.connect(self.on_type_obj_changed)
self.reset_button.clicked.connect(self.set_tool_ui)
# #############################################################################
@@ -655,7 +655,7 @@ class ToolPaint(FlatCAMTool, Gerber):
icon=QtGui.QIcon(self.app.resource_location + "/delete32.png")
)
def on_type_obj_index_changed(self, val):
def on_type_obj_changed(self, val):
obj_type = 0 if val == 'gerber' else 2
self.obj_combo.setRootModelIndex(self.app.collection.index(obj_type, 0, QtCore.QModelIndex()))
self.obj_combo.setCurrentIndex(0)